Skip to main content
POST
/
api
/
entities
/
custom
/
v1
/
types
UpsertType
curl --request POST \
  --url https://developer.synq.io/api/entities/custom/v1/types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": {
    "typeId": 500,
    "name": "<string>",
    "svgIcon": "aSDinaTvuI8gbWludGxpZnk=",
    "workspace": "<string>",
    "svgIconId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  }
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
Type · object
required

Entity to create or update.

Response

200 - application/json

Success

The response is of type UpsertTypeResponse · object.