Activities
Create an activity
Changed onCreates a new custom activity in your workspace. Your workspace must have the custom activities billing feature enabled. Public apps may instead create activities with the integration activities billing feature.
This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
Required scopes: activity_configuration:read-write.
Supported token levels: workspace, user.
post/v2/activities
Request
- Base URLhttps://api.attio.com
- URLhttps://api.attio.com/v2/activities
- AuthOAuth 2Authorization code: https://app.attio.com/authorizeToken URL: https://app.attio.com/oauth/token scopes: activity_configuration:read-write
Request body
Example request
{
"data": {
"api_slug": "site_visits",
"singular_noun": "Site visit",
"plural_noun": "Site visits",
"extends": "interactions"
}
}Response
Success
Example response
{
"data": {
"id": {
"workspace_id": "14beef7a-99f7-4534-a87e-70b564330a4c",
"activity_id": "97052eb9-e65e-443f-a297-f2d9a4a7f795"
},
"api_slug": "phone_calls",
"singular_noun": "Phone call",
"plural_noun": "Phone calls",
"extends": [
{
"schema_id": "b1d6a29e-6f6f-4a0a-9b0e-59f0a3e3f7a1",
"schema_slug": "calls"
}
],
"is_system_activity": true,
"created_at": "2022-11-21T13:22:49.061281000Z"
}
}Changes
- breaking
the
response's property type changed fromstringto no type for status - info
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status - info
removed the
unauthorizedenum value from theresponse property for the response status
- breaking
- info
added the non-success response with the status
- info