Update Custom Activity Type¶
POST /rest/v1/activities/external/type/{apiName}.json
Method: POST
Path: /rest/v1/activities/external/type/{apiName}.json
Tag: Activities
Operation ID: updateCustomActivityTypeUsingPOST
Updates the target custom activity type. All changes are applied to the draft version of the type. Required Permissions: Read-Write Activity Metadata
Formats¶
- Request:
application/json - Response:
application/json
Request¶
Path parameters¶
| Name | Type | Required | Description | Constraints |
|---|---|---|---|---|
apiName |
string | Yes | API Name of the activity type |
Request body¶
Name: customActivityTypeRequest
Required: Yes
Schema: model: CustomActivityTypeRequest
customActivityTypeRequest
Generated example¶
{
"apiName": "Example name",
"description": "string",
"filterName": "Example name",
"name": "Example name",
"primaryAttribute": {
"apiName": "Example name",
"dataType": "string",
"description": "string",
"isPrimary": false,
"name": "Example name"
},
"triggerName": "Example name"
}
Referenced models¶
Example request¶
POST {{base_url}}/rest/v1/activities/external/type/{{apiName}}.json
Content-Type: application/json
Accept: application/json
{
"apiName": "Example name",
"description": "string",
"filterName": "Example name",
"name": "Example name",
"primaryAttribute": {
"apiName": "Example name",
"dataType": "string",
"description": "string",
"isPrimary": false,
"name": "Example name"
},
"triggerName": "Example name"
}
Responses¶
200 — OK¶
Schema: model: ResponseOfCustomActivityType
Generated example¶
{
"errors": [
{
"code": "string",
"message": "string"
}
],
"moreResult": false,
"nextPageToken": "example-token",
"requestId": "123",
"result": [
{
"apiName": "Example name",
"attributes": [
{
"apiName": "Example name",
"dataType": "string",
"description": "string",
"isPrimary": false,
"name": "Example name"
}
],
"createdAt": "string",
"description": "string",
"filterName": "Example name",
"id": 123,
"name": "Example name",
"primaryAttribute": {
"apiName": "Example name",
"dataType": "string",
"description": "string",
"isPrimary": false,
"name": "Example name"
},
"status": "draft",
"triggerName": "Example name",
"updatedAt": "string"
}
],
"success": false,
"warnings": [
{
"code": 123,
"message": "string"
}
]
}
Referenced models¶
Source¶
Generated from swagger-mapi.json.
Generated examples are inferred from the schema. They are illustrative and may not be valid production payloads.