cURL
curl --request POST \ --url https://hero.page/api/v1/createItem/{spaceId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "listId": "<string>", "title": "<string>", "note": "<string>", "image": "<string>", "link": "<string>", "generated_by": { "model": "<string>", "job_id": "<string>", "appDescription": "<string>", "appSubtitle": "<string>", "appID": "<string>", "appName": "<string>", "appIcon": "<string>", "appTags": [ "<string>" ] }, "isAIPrompt": false }'
{ "id": "<string>", "title": "<string>", "note": "<string>", "img": "<string>", "url": "<string>", "pageID": "<string>", "spaceID": "<string>", "sortIndex": 123, "send_approval_email": true, "readMorePageSlug": "<string>", "is_archived": true, "completed": true, "actionType": "<string>", "fileURL": "<string>", "fileName": "<string>", "createdAt": "2023-11-07T05:31:56Z", "is_image_full_width": true, "submitted_by": {}, "urlMetadata": {}, "image_generated_on_hero": true, "isAIPrompt": true, "owner_uid": "<string>", "ticketType": "<string>", "generated_by": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the space where the item will be created. Must be a non-empty string.
OK
The response is of type object.
object