ConsistlyAPI
Icons

Upload an icon

POST
/icons
AuthorizationBearer <token>

Bearer API key. CMS endpoints require cms:read or cms:write (plus narrower writes for specific resources).

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/icons" \  -F set="string"
{  "id": "string",  "object": "icon",  "organization": "string",  "set": "string",  "name": "string",  "filename": "string",  "tags": [    "string"  ],  "color": "string",  "gradient_start": "string",  "gradient_end": "string",  "gradient_angle": 0,  "uploaded_by": "string",  "created": "2019-08-24T14:15:22Z",  "updated": "2019-08-24T14:15:22Z"}
{  "error": {}}
{  "error": {}}
{  "error": {}}