rizamodocs
Accounts

Move an account to another profile

PATCH
/accounts/{id}

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the web app, under Developers. It starts with rz_live_.

Path Parameters

id*string

Request Body

application/json
  1. body
profileId*string

Response Body

OK

application/json
  1. response
id*string
profileId*string
network*string
Value in"instagram""facebook""threads""linkedin""tiktok""youtube""x""pinterest""google"
handle*string
name*string
status*string

connected: works. expiring: reconnect before reconnectBy. disconnected: the network revoked access; reconnect to publish again.

Value in"connected""expiring""disconnected"
followers*integer
Range-9007199254740991 <= value <= 9007199254740991
avatarUrl*string|null
connectionId*string

The login this account came through. One login can bring several accounts, and one reconnect fixes them all.

reconnectBy*|

When the network will end access unless someone logs in again (TikTok and LinkedIn: a year after the first login).

capabilities*array<>

What this account can do, from its login, your role on the network and the account's level. The API refuses the rest with capability_missing.

formats*array<>

The formats this account can publish.

Example Request
curl -X PATCH 'https://api.rizamo.com/v1/accounts/string' \  -H 'Content-Type: application/json' \  -d '{  "profileId": "string"}'
Example Response200
{  "id": "string",  "profileId": "string",  "network": "instagram",  "handle": "string",  "name": "string",  "status": "connected",  "followers": -9007199254740991,  "avatarUrl": "string",  "connectionId": "string",  "reconnectBy": "2019-08-24T14:15:22Z",  "capabilities": [    "publish"  ],  "formats": [    "feed"  ]}