TryzenAPI
Senders

Change a sender's ambient settings

PATCH
/v1/senders/{senderId}/ambient

Access: an API key (or an org-wide key naming the workspace) with manage on senders.

Any subset of enabled, likesPerDay (0-2), sessionsPerWorkday ({min,max} within 0-6) and sessionsPerOffDay (within 0-3); a range is replaced whole. Today's plan is not redrawn (the next day uses the new ranges), except enabled: false, which stops new sessions at once (a running one finishes).

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

senderId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
enabled?boolean
likesPerDay?
sessionsPerWorkday?
sessionsPerOffDay?

Response Body

Default Response

application/json
  1. response
ambient*
Example Request
curl -X PATCH 'https://api.tryzen.co/v1/senders/string/ambient' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "ambient": {    "settings": {      "enabled": true,      "likesPerDay": {        "min": 0,        "max": 0      },      "sessionsPerWorkday": {        "min": 0,        "max": 0      },      "sessionsPerOffDay": {        "min": 0,        "max": 0      }    },    "available": true,    "pausedReason": "string",    "today": {      "date": "string",      "sessionsPlanned": 0,      "sessionsDone": 0,      "likes": 0,      "extraSessionsRequested": 0,      "nextSessionAt": "2019-08-24T14:15:22Z"    },    "lastSession": {      "at": "2019-08-24T14:15:22Z",      "outcome": "completed"    }  }}