curl --request POST \
--url https://api.useconquest.com/v1/activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"activityTypeKey": "api:message",
"externalId": "<string>",
"title": "<string>",
"message": "<string>",
"replyTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reactTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inviteTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"activity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "<string>",
"title": "<string>",
"message": "<string>",
"replyTo": "<string>",
"reactTo": "<string>",
"inviteTo": "<string>",
"source": "Api",
"activityTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Create an activity for a member
curl --request POST \
--url https://api.useconquest.com/v1/activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"activityTypeKey": "api:message",
"externalId": "<string>",
"title": "<string>",
"message": "<string>",
"replyTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reactTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inviteTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"activity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "<string>",
"title": "<string>",
"message": "<string>",
"replyTo": "<string>",
"reactTo": "<string>",
"inviteTo": "<string>",
"source": "Api",
"activityTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Activity created successfully
The response is of type object
.