Apiary Powered Documentation
Sign in with Apiary account.
The Anaplan CloudWorks API enables you create your own connections and integrations with Anaplan CloudWorks.
Depending on the country you work in, see the Support page: Uniform resource locators for information on the URLs to add to your allowlist.
You must have access to the Anaplan CloudWorks API to use the endpoints listed in this guide. The Anaplan CloudWorks API enables you create your own connections and integrations with Anaplan CloudWorks. We recommend you use the revised Version 2.0, but the last version (1.0) is still supported.
To test this API, use an appropriate tool you trust with your secured credentials. If successful, the testing tool will connect to your Anaplan production environment using your credentials.
There are three new features added for Integration flows:
A new paramater is available to help sort integrations. It is sortBy. If sortBy=name, then the sort is in acending order. If sortBy=-name, then the sort is in descending order.
Get calls for integrations include notificationID in the response bodies, when a notification configuration is available for the integraion. The rest of the endpoints are same as Version 1.0.
If you're working from Australia, make your Cloudworks API calls using the URL:
If you're working from Canada, make your Cloudworks API calls using the URL:
The following is a list of possible error codes and descriptions you may encounter with CloudWorks.
Error | HTTP code | Description |
---|---|---|
Integration flow error |
400 |
Integration flow has to have at least two enabled steps. |
Invalid request body |
400 |
There is a problem with the request body. Double-check the format of your request body. |
{request parameter name} |
400 |
There is a problem with a parameter in the request body. Double-check the format of your request body. |
{header name} |
400 |
There is a problem with a request header. Double-check the format of your request header. |
User does not have access to workspace |
400 |
You do not have access to the workspace. |
User does not have access to model |
400 |
You do not have access to the model. |
Role arn is invalid |
400 |
The Role ARN provided for Amazon S3 credentials is invalid |
Bucket name is invalid |
400 |
Amazon S3 bucket name is invalid or does not exist. |
Credentials are invalid |
400 |
The credentials for the external platform (for example, Amazon S3) are invalid. |
Bucket access denied |
400 |
You do not have access to the Amazon S3 bucket. |
Only a single schedule is supported per integration |
400 |
Each CloudWorks integration supports a single associated schedule. |
Invalid Schedule |
400 |
The schedule details are invalid. Verify the details and amend, as needed. |
{field error} |
400 |
A field in the request has resulted in an error. Verify the field element is correct. |
Invalid connection type |
400 |
The connection type is not valid. Verify the connection type is valid. |
Integration payload is not compliant with the schema |
400 |
The request to create or modify an integration has a payload in an invalid format. |
A Process that has Optimizer as steps cannot be executed through CloudWorks. |
400 |
The selected Process has Optimizer as a step which is not supported by CloudWorks. Please remove the optimizer step from the Process in order to use it within CloudWorks. |
Action(s) you included, {action_ids} are not defined in your Anaplan model. |
400 |
Check the actions in Anaplan model. |
This API version is not supported for this request |
400 |
Check the URL version. |
Not Authorized |
403 |
You are not authorized. Verify that the Anaplan authorization token has not yet expired. If the token is valid, contact Anaplan support. |
Resource not found |
404 |
This indicates the source information is invalid. Verify the source information (for example, the connectionId .) |
Invalid connection_id |
404 |
The connectionId is invalid. Check if the connectionId is valid. |
Integration is already running |
409 |
The API call cannot run until the integration completes. |
The resource is being referenced |
409 |
Check if the resource is being referenced. |
Only a single job is supported by import/export integration |
409 |
The integration has too many jobs. CloudWorks integrations only support one job. |
Total number of integrations exceeded the limit |
409 |
The integrations exceed the maximum of 500 allowed per Tenant. |
Model Not Found Error |
500 |
The request cannot find the referenced Anaplan model. Verify the model is present in Anaplan. |
A running integration cannot be deleted |
500 |
A delete request has run against an active integration. Run the delete again when the integration has completed. |
Unable to retrieve S3 files, count too high |
500 |
The request to retrieve files from an Amazon S3 bucket has resulted in too many files for retrieval. |
Duplicate resource name not allowed |
500 |
There is a duplicate resource name. Each resource name must be unique. |
Internal server error |
500 |
There is an issue that requires assistance from Anaplan. Contact Anaplan support. |
Anaplan Connection Error |
500 |
There is an issue that requires assistance from Anaplan. Contact Anaplan support. |
Invalid workspace or model |
503 |
The workspace or model ID is invalid. |
Integration trigger error |
503 |
There is an issue that requires assistance from Anaplan. Contact Anaplan support. |
Invalid Dataset |
400 |
Check if Google Big Query dataset is valid. |
Dataset access denied |
400 |
Check if you have access to Google Big Query dataset. |
integrations/connections
Use this call to create a new connection for CloudWorks.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations/connections’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’ \
-d ‘{request body}’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
Amazon S3
{
"type": "{type}",
"body": {
"name": "{name}",
"accessKeyId": "{access key ID}",
"secretAccessKey": "{secret access key}",
"bucketName": "{bucket name}",
"roleArn": "{role ARN}"
}
}
Amazon S3 example for restricted integration users
Note: If you are a restricted integration user, add the Workspace ID to which you have access in the payload.
{
"type": "{type}",
"body": {
"name": "{name}",
"accessKeyId": "{access key ID}",
"secretAccessKey": "{secret access key}",
"bucketName": "{bucket name}",
"roleArn": "{role ARN}",
"workspaceId": "{workspace id}"
}
}
JSON | Details |
---|---|
type |
|
name |
|
accessKeyId |
|
secretAccessKey |
|
bucketName |
|
roleArn |
|
workspaceId |
|
Google Big Query
{
"type": "{type}",
"body" : {
"name" : "{name}",
"serviceAccountKey" : {
"type": "service_account",
"projectId": "{projectId}",
"privateKeyId": "{privateKeyId}",
"privateKey": "{privateKey}",
"clientEmail": "{clientEmail}",
"clientId": "{clientId}",
"authUri": "{authUri}",
"tokenUri": "{tokenUri}",
"authProviderX509CertUrl": "{authProviderX509CertUrl}",
"clientX509CertUrl": "{clientX509CertUrl}"
},
"dataset": "{dataset}"
}
}
Google Big Query example for restricted integration users
Note: If you are a restricted integration user, add the Workspace ID to which you have access in the payload.
{
"type": "{type}",
"body" : {
"name" : "{name}",
"serviceAccountKey" : {
"type": "service_account",
"projectId": "{projectId}",
"privateKeyId": "{privateKeyId}",
"privateKey": "{privateKey}",
"clientEmail": "{clientEmail}",
"clientId": "{clientId}",
"authUri": "{authUri}",
"tokenUri": "{tokenUri}",
"authProviderX509CertUrl": "{authProviderX509CertUrl}",
"clientX509CertUrl": "{clientX509CertUrl}"
},
"dataset": "{dataset}",
"workspaceId": "{workspace id}"
}
}
JSON | Details |
---|---|
type |
|
name |
|
projectId |
|
privateKeyId |
|
privateKey |
|
clientEmail |
|
clientId |
|
authUri |
|
tokenUri |
|
authProviderX509CertUrl |
|
clientX509CertUrl |
|
dataset |
|
workspaceId |
|
Azure Blob
{
"type": "{type}",
}
"body": {
"name": "name",
"storageAccountName": "{storate account name}",
"sasToken": "{SAS token}",
"containerName": "{container name}"
}
}
Azure Blob example for restricted integration users
Note: If you are a restricted integration user, add the Workspace ID to which you have access in the payload.
{
"type": "{type}",
}
"body": {
"name": "name",
"storageAccountName": "{storate account name}",
"sasToken": "{SAS token}",
"containerName": "{container name}",
"workspaceId": "{workspace id}"
}
}
JSON | Details |
---|---|
type |
|
name |
|
storageAccountName |
|
sasToken |
|
containerName |
|
workspaceId |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"connections": {
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7"
}
}
/integrations/connections
Use this to get a list of your current connections to CloudWorks.
curl -X GET https://api.cloudworks.anaplan.com/2/0/integrations/connections \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"connections": [
{
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"connectionType": "AmazonS3",
"body": {
"name": "test_credentials_2",
"bucketName": "samplebucket"
},
"isoCreationDate": "2020-09-08T19:18:11.000Z",
"isoModificationDate": "2020-09-08T19:31:33.000Z",
"createdBy": "John Smith",
"modifiedBy": "John Smith",
"status": 1,
"integrationErrorCode": null
},
{
"connectionId": "d743a4e6c39d46c394f792f31d67dd95",
"connectionType": "GoogleBigQuery",
"body": {
"name": "test bq credentials",
"dataset": "dev_us_west"
},
{
"connectionId": "46d677fdb67a41529d0ddadc294515dd",
"connectionType": "AzureBlob",
"body": {
"name": "test azure credentials",
"storageAccountName": "my_storage_account",
"containerName": "my_container"
},
"creationDate": "2021-09-02T19:45:28.000Z",
"modificationDate": "2021-09-02T20:46:43.000Z",
"createdBy": "John Smith",
"modifiedBy": "John Smith",
"status": 1,
"integrationErrorCode": null
}
],
"meta": {
"paging": {
"currentPageSize": 3,
"totalSize": 3,
"offset": 0
},
"schema": "https://api.anaplan.com/cloudworks/2/0/integrations/objects/connections?connectionType=<connectionType>"
}
}
Note: The status
indicates if the connection is valid. A value of 1
indicates a valid connection. A 0
indicates an invalid connection. If the connection is invalid, these are some of the possible values listed for
integrationErrorCode
:
Error |
---|
Error code: 1 - AMAZONS3_INVALID_CREDENTIALS |
Error code: 4 - AMAZONS3_INVALID_BUCKET |
Error code: 10 - AWS_ASSUME_ROLE_FAILED |
integrations/connections/{connectionId}
Use this call to edit a connection in Anaplan CloudWorks.
curl -X PUT ‘https://api.cloudworks.anaplan.com/2/0/integrations/connections/{connectionId}’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’ \
-d ‘{request body}'
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{connectionId} |
|
AmazonS3
{
"name": "{name}",
"accessKeyId": "{access key ID}",
"secretAccessKey": "{secret access key}",
"bucketName": "{bucket name}",
"roleArn": "{role ARN}"
}
JSON | Details |
---|---|
name |
|
accessKeyId |
|
secretAccessKey |
|
bucketName |
|
roleArn |
|
Azure Blob
{
"name": "name",
"StorageAccountName": "{storate account name}",
"sasToken:: "{SAS token}",
"containerName": "{container name}"
}
JSON | Details |
---|---|
name |
|
storageAccountName |
|
sasToken |
|
containerName |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
integrations/connections/{connectionId}
Use this call to patch a connection in Anaplan CloudWorks. A patch enables you to update an element of the connection (for example, the name) without having to provide the entire request body as listed in Update connection.
curl -X PATCH ‘https://api.cloudworks.anaplan.com/2/0/integrations/connections/{connectionId}’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’ \
-d ‘{ "{body field}": "{JSON}" }'
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{connectionId} |
|
For the request body, include the individual JSON detail to update (for example, name). You can provide the entire body, similar to Update connection, if necessary. JSON elements for the request body are listed as optional, but this call must contain at least one of the JSON body fields for the call to be valid.
{
"name": "{name}"
}
JSON | Details |
---|---|
name |
|
accessKeyId |
|
secretAccessKey |
|
bucketName |
|
roleArn |
|
storageAccountName |
|
sasToken |
|
containerName |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/connections/{connectionId}
Use this to delete a connection to CloudWorks.
curl -X DELETE https://api.cloudworks.anaplan.com/2/0/integrations/connections/{connectionId} \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{connectionId} |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations
Use this call to create a new integration for Anaplan CloudWorks.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
Note: For restricted integration users, the workspace ID of the integration needs match with the workspace ID of the associated connection.
AmazonS3
{
"name": "sample import integration",
"version":"2.0",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
]
}
]
}
GoogleBigQuery
{
"name": "test-bq-public-import",
"version": "2.0",
"modelId": "ED1CF72660164FD5A83B16A17C8CAE94",
"workspaceId": "2c9ba1b67b59fdee017ba23f6b7d2701",
"nuxVisible": false,
"jobs": [
{
"type": "GoogleBigQueryToAnaplan",
"sources":[
{
"type":"GoogleBigQuery",
"connectionId":"1g5y2f662c1b4c71a02fb496f09a40f7",
"table":"SKU_import"
}
],
"targets":[
{
"type":"Anaplan",
"actionId":"112000000117",
"fileId":"113000000098"
}
]
}
]
}
}
AzureBlob
{
"name": "sample import integration",
"version": "2.0",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"nuxVisible": false,
"jobs": [
{
"type": "AzureBlobToAnaplan",
"sources": [
{
"type": "AzureBlob",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
]
}
]
}
AmazonS3
{
"name": "sample export integration",
"version": "2.0",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"nuxVisible": false,
"jobs": [
{
"type": "AnaplanToAmazonS3",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000011"
}
],
"targets": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "exports/",
"overwrite": true
}
]
}
]
}
Google Big Query
{
"name": "bq export",
"version": "2.0",
"modelId": "ED1CF72660164FD5A83B16A17C8CAE94",
"workspaceId": "2c9ba1b67b59fdee017ba23f6b7d2701",
"nuxVisible": false,
"jobs": [
{
"type": "AnaplanToGoogleBigQuery",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000053"
}
],
"targets": [
{
"type": "GoogleBigQuery",
"table": "SKU_data",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"overwrite": true
}
],
"mapping":[
{"sourceName": "Size", "targetName": "Size"},
{"sourceName": "SKU_Item", "targetName": "SKU Item"}
]
}
]
}
AzureBlob
{
"name": "sample export integration",
"version": "2.0",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"nuxVisible": false,
"jobs": [
{
"type": "AnaplanToAzureBlob",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000011"
}
],
"targets": [
{
"type": “AzureBlob",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "exports/",
"overwrite": true
}
]
}
]
}
curl -X POST ‘https://api.cloudworks.anaplan.com/1/0/integrations’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
{
"name": "sample import integration",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711"
}
]
}
]
}
{
"name": “sample export integration",
"nuxVisible": false,
"jobs": [
{
"type": “AnaplanToAmazonS3",
"sources": [
{
"type": “Anaplan",
"actionId": “116000000011",
"workspaceId": “8a80db657068fjef01718955f3b3390b",
"modelId": “E559BFF3B1GD4RKE874P745BEL259711"
}
],
"targets": [
{
"type": “AmazonS3",
"connectionId": “0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "exports/",
"overwrite": true
}
]
}
]
}
JSON | Details |
---|---|
jobs |
|
type |
|
sources |
[ { “type”: “Anaplan”, “actionId”: “116000000011”, “workspaceId”: “8a80db657068fjef01718955f3b3390b”, “modelId”: “E559BFF3B1GD4RKE874P745BEL259711” } ] |
targets |
{ “type”: “AmazonS3", “connectionId”: “0c3d2f662c1b4c71a02fb4b6f09a40f7", “file”: “exports/“, “overwrite”: true } |
connectionId |
|
type |
|
file |
|
actionId |
|
fileId |
|
workspaceId |
|
modelId |
|
overwrite |
|
mapping |
|
nuxVisible |
|
name |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integration": {
"integrationId": "fe40dc5793084f7dbb685cffe6a5ad2a"
}
}
/integrations/{integrationId}/run
Use this call to run an integration.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}/run’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"run": {
"id": "hy40d89893084f0dkb985cmme9i5io2a"
}
}
/integrations
Use this call to retrieve all your integrations.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrations’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{offset} |
|
{limit} |
|
{myIntegrations} |
|
Note: if this call does not provide {offset}
or {limit}
, it retrieves 25 integrations.
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integrations": [
{
"integrationId": "fe40dc5793084f7dbb685cffe6a5ad2aa",
"name": "sample import integration",
"createdBy": "John Smith",
"creationDate": "2020-09-29T01:31:16.000Z",
"modificationDate": "2020-09-29T01:31:26.000Z",
"modifiedBy": "John Smith",
"latestRun": {
"triggeredBy": "John Smith",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"success": true,
"message": "Success",
"executionErrorCode": null
},
"notificationId": "a72d86ac0a9c454aa8baf67c1db67486",
"nuxVisible": false
},
{
"integrationId": "4caad0c1b91545d983cb6a2bb62d755e",
"name": "sample process integration",
"processId": "118000000001",
"createdBy": "John Smith",
"creationDate": "2021-01-29T01:31:16.000Z",
"modificationDate": "2021-01-29T01:31:26.000Z",
"modifiedBy": "John Smith",
"latestRun": {
"triggeredBy": "John Smith",
"startDate": "2021-01-29T23:09:31.000Z",
"endDate": "2021-01-29T23:13:07.000Z",
"success": true,
"message": "Success",
"executionErrorCode": null
},
"notificationId": "37945d3f7543463a859949e690dc4b60",
"nuxVisible": false
}
],
"meta": {
"paging": {
"currentPageSize": 2,
"totalSize": 2,
"offset": 0
},
"schema": "https://api.anaplan.com/cloudworks/2/0/integrations/objects/integrations"
}
/integrations/{integrationId}
Use this call to get integration details for a specific integration.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’ \
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integration":
{
"jobs": [
{
"sources": [
{
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"type": "AmazonS3",
"file": "sample_file.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
],
"type": "AmazonS3ToAnaplan"
}
],
"name": "sample import integration",
"integrationId": "fe40dc57-9308-4f7d-bb68-5cffe6a5ad2aa",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"createdBy": "John Smith",
"creationDate": "2020-09-28T23:08:24.000Z",
"modificationDate": "2020-09-28T23:08:26.000Z",
"modifiedBy": "None",
"latestRun": {
"triggeredBy": "John Smith",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"success": true,
"message": "Success",
"executionErrorCode": null
},
"notificationId": "a72d86ac0a9c454aa8baf67c1db67486",
"nuxVisible": false
},
"meta": {
"schema": "https://api.cloudworks.anaplan.com//0/integrations/objects/integration"
}
/integrations/anaplanModels/{modelId}
Use this call to get all integrations from an Anaplan model.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrations/anaplanModels/{modelId}’
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {token_value} |
|
Content-Type |
|
Parameter | Details |
---|---|
{modelId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integrations": [
{
"jobs": [
{
"sources": [
{
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"type": "AmazonS3",
"file": "sample_file.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
],
"type": "AmazonS3ToAnaplan"
}
],
"name": "sample import integration",
"integrationId": "fe40dc5793084f7dbb685cffe6a5ad2aa",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"createdBy": "John Smith",
"creationDate": "2020-09-26T04:21:51.000Z",
"modificationDate": "2020-09-26T04:21:51.000Z",
"modifiedBy": "None",
"latestRun": {
"triggeredBy": "John Smith",
"startDate": "2020-09-02T06:39:08.000Z",
"endDate": "2020-09-02T06:40:18.000Z",
"success": true,
"message": "Success",
"executionErrorCode": null},
"schedule": {
"name": "test-schedule",
"time": "22:00",
"type": "monthly_specific_day",
"endDate": "2020-12-01",
"timezone": "Europe/Paris",
"startDate": "2020-09-03",
"dayOfMonth": 11,
"status": "Active"
},
"notificationId": "a72d86ac0a9c454aa8baf67c1db67486",
"nuxVisible": false
],
"meta": {
"paging": {
"currentPageSize": 1,
"totalSize": 1,
"offset": 0
},
"schema": "https://api.cloudworks.anaplan.com/2/0/integrations/objects/model"
}
}
/integrations/{integrationId}
Use this call to edit an integration, import, or export for CloudWorks.
curl -X PUT ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
Note: For restricted integration users, the workspace ID of the integration needs match with the workspace ID of the associated connection.
{
"name": "sample import integration updated",
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"version":"2.0",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
]
}
]
}
JSON | Details |
---|---|
jobs |
|
type |
|
sources |
|
targets |
|
connectionId |
|
type |
|
file |
|
actionId |
|
fileId |
|
workspaceId |
|
modelId |
|
overwrite |
|
nuxVisible |
|
name |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/{integrationId}
Use this call to delete an integration, import or export in CloudWorks.
curl -X DELETE ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/{integrationId}
Use this call to create a process integration in CloudWorks using Version 2.0.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
Note: A Process integration with Version 2.0 can contain none or more than one job. Include only those import/export actions in the “jobs” section of the request body which are associated with the Amazon S3 file.
{
"name": "sample process integration",
"version": "2.0",
"processId": "118000000001",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file_1.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
]
},
{
"type": "AnaplanToAmazonS3",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000000"
}
],
"targets": [
{
"type": "AmazonS3",
"connectionId": "0d3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "Exports/"
}
]
}
]
}
Users can also create an integration if the Anaplan Process does not contain any actions associated with an AmazonS3 file. eg: A process containing only Model-to-Model import actions and delete action.
A process containing Anaplan actions that are not associated with the cloud service.
{
"name": "sample process integration2",
"version": "2.0",
"processId": "118000000001",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711"
}
curl -X POST ‘https://api.cloudworks.anaplan.com/1/0/integrations’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Note: Process integration can contain one or more jobs. Include only those actions in the request body which are associated with the Amazon S3 file. For the following request, the first job runs an import action to get data into Anaplan and the second job runs an export action to get data out of Anaplan.
{
"name": "sample process integration",
"processId": "118000000001",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file_1.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711"
}
]
},
{
"type": "AnaplanToAmazonS3",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000000",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711"
}
],
"targets": [
{
"type": "AmazonS3",
"connectionId": "0d3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "Exports/"
}
]
}
]
}
JSON | Details |
---|---|
jobs |
|
processId |
|
type |
|
sources |
|
targets |
{ "type": "AmazonS3", "connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7", "file": "exports/", "overwrite": true } |
connectionId |
|
type |
|
file |
|
actionId |
|
fileId |
|
workspaceId |
|
modelId |
|
overwrite |
|
version |
|
nuxVisible |
|
name |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integration": {
"integrationId": "4caad0c1b91545d983cb6a2bb62d755e"
}
}
/integrations/{integrationId}
Use this call to edit a process integration using Version 2.0.
curl -X PUT ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’ \
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
{
"name": "sample process integration updated",
"processId": "118000000001",
"version": "2.0",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file_updated.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011"
}
]
},
{
"type": "AnaplanToAmazonS3",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000000"
}
],
"targets": [
{
"type": "AmazonS3",
"connectionId": "0d3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "Exports/"
}
]
}
]
}
curl -X PUT ‘https://api.cloudworks.anaplan.com/1/0/integrations/{integrationId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’ \
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
{
"name": "sample process integration updated",
"processId": "118000000001",
"nuxVisible": false,
"jobs": [
{
"type": "AmazonS3ToAnaplan",
"sources": [
{
"type": "AmazonS3",
"connectionId": "0c3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "sample_file_updated.csv"
}
],
"targets": [
{
"type": "Anaplan",
"actionId": "112000000011",
"fileId": "113000000011",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711"
}
]
},
{
"type": "AnaplanToAmazonS3",
"sources": [
{
"type": "Anaplan",
"actionId": "116000000000",
"workspaceId": "8b90db657068fjef01718955f3b3390b",
"modelId": "E229BFF3B1GD4RKE874P745BEL259711"
}
],
"targets": [
{
"type": "AmazonS3",
"connectionId": "0d3d2f662c1b4c71a02fb4b6f09a40f7",
"file": "Exports/"
}
]
}
]
}
JSON | Details |
---|---|
jobs |
|
processId |
|
type |
|
sources |
|
targets |
|
connectionId |
|
type |
|
file |
|
actionId |
|
fileId |
|
workspaceId |
|
modelId |
|
overwrite |
|
version |
|
nuxVisible |
|
name |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/{integrationId}/schedule/status/{status}
Use this call to set the status of a scheduled integration.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}/schedule/status/{status}’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
{status} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/{integrationId}/schedule
Use this call to create an integration schedule. This call supports a maximum of one schedule per integration.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}/schedule’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {token_value} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
Schedule Type: weekly
. It runs on specific days of the week.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "weekly",
"time": "12:45",
"daysOfWeek": [0, 6]
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: monthly_specific_day
. It runs on a specific day of the month.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "monthly_specific_day",
"dayOfMonth": 12,
"time": "22:00",
"startDate": "2020-09-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: monthly_relative_weekday
. It runs on a day of the week relative to the start of the month.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "monthly_relative_weekday",
"time": "12:45",
"dayOfWeek": 3,
"repeatEvery": 2
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: hourly
. It runs on specific days of the week, each hour, between a start and end hour.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "hourly",
"repeatEvery": 2,
"fromTime": "20:00",
"toTime": "23:20",
"daysOfWeek": [0, 6],
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: daily
. It runs each day, at a specified time.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "daily",
"time": "11:55",
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
JSON | Details |
---|---|
name |
|
type |
|
dayOfMonth |
|
daysOfWeek |
|
repeatEvery |
|
time |
|
fromTime |
|
toTime |
|
startDate |
|
endDate |
|
timezone |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"scheduledIntegration": {
"id": "0995f32adf2443a9b2420739cedc17f9"
}
}
/integrations/{integrationId}/schedule
Use this call to update the schedule of an integration for Anaplan CloudWorks.
curl -X PUT ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}/schedule' \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
Schedule Type: weekly
. It runs on specific days of the week.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "weekly",
"time": "12:45",
"daysOfWeek": [0, 6]
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: monthly_specific_day
. It runs on a specific day of the month.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "monthly_specific_day",
"dayOfMonth": 12,
"time": "22:00",
"startDate": "2020-09-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: monthly_relative_weekday
. It runs on a day of the week relative to the start of the month.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "monthly_relative_weekday",
"time": "12:45",
"dayOfWeek": 3,
"repeatEvery": 2
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: hourly
. It runs on specific days of the week, each hour, between a start and end hour.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "hourly",
"repeatEvery": 2,
"fromTime": "20:00",
"toTime": "23:20",
"daysOfWeek": [0, 6],
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
Schedule Type: daily
. It runs each day, at a specified time.
{
"integrationId": fe40dc5793084f7dbb685cffe6a5ad2a,
"schedule": {
"name": "test schedule",
"type": "daily",
"time": "11:55",
"startDate": "2020-07-03",
"endDate": "2020-12-01",
"timezone": "Europe/Paris"
}
}
JSON | Details |
---|---|
name |
|
type |
|
dayOfMonth |
|
daysOfWeek |
|
repeatEvery |
|
time |
|
fromTime |
|
toTime |
|
startDate |
|
endDate |
|
timezone |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/{integrationId}/schedule
Use this call to delete an integration schedule.
curl -X DELETE ‘https://api.cloudworks.anaplan.com/2/0/integrations/{integrationId}/schedule’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/runs/{integrationId}
Use this call to see the integration history.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrations/runs/{integrationId}’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{offset} |
|
{limit} |
|
{integrationId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"history_of_runs":
{
"integrationId": "fe40dc57-9308-4f7d-bb68-5cffe6a5ad2a",
"name": "sample import integration",
"schedule": null,
"workspaceId": "8a80db657068fjef01718955f3b3390b",
"modelId": "E559BFF3B1GD4RKE874P745BEL259711",
"creationDate": "2020-09-28T23:08:24.000Z",
"modificationDate": "2020-09-28T23:08:26.000Z",
"createdBy": "John Smith",
"modifiedBy": "None",
"status": 1,
"notificationId": "a72d86ac0a9c454aa8baf67c1db67486",
"runs": [
{
"id": "hy40d89893084f0dkb985cmme9i5io2a",
"triggeredBy": "John Smith",
"lastRun": "2020-09-28T23:09:31.000Z",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"success": true,
"message": "Success",
"executionErrorCode": null
}
],
"totalRuns": 1
},
"meta": {
"schema": "https://api.cloudworks.anaplan.com/2/0/integrations/objects/runs"
}
}
/integrations/runerror/{runId}
Use this call to review error messages from the integration run.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrations/runerror/{runId} \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{runId} |
|
None
Content-Type: application/json
{
"status":{
"code":200,
"message":"Success"
},
"runs":[
{
"id":"hy40d89893084f0dkb985cmme9i5io2a",
"errorMessages":[
{
"errorMessage":[
{
"localMessageText":"test e2e: 13 (0/13) rows successful, 0 (0/0) rows has warnings, 2 failed, 0 ignored",
"occurrences":0,
"type":"hierarchyRowsProcessedWithFailures",
"values":[]
}
],
"actionId": "112000000011",
"actionName": "sample import action",
"failureDumpGenerated": true,
}
],
"taskId":"F4AF7C7C03C145D6A2CDC6E194EFB392",
"creationDate":"2020-09-29T04:05:12.000Z",
"modificationDate":"2020-09-29T04:05:12.000Z",
"createdBy":"John Smith",
"modifiedBy":"None"
}
],
"meta":{
"schema":"https://api.cloudworks.anaplan.com/2/0/integrations/objects/runerror"
}
}
Note: The taskId
is the identifier for a specific import or export task.
/integrations/run/{runId}
Use this call to get the status of a specific integration run.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrations/run/{runId}’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{runId} |
|
None
Content-Type: application/json
{
"status":{
"code":200,
"message":"Success"
},
"run":{
"id": "hy40d89893084f0dkb98-5cmme9i5io2a",
"integrationId": "fe40dc5793084f7dbb68-5cffe6a5ad2a",
"startDate": "2020-09-29T04:05:20.000Z",
"endDate": "2020-09-29T04:05:25.000Z",
"success": true,
"message": "Success",
"creationDate": "2020-09-29T04:05:12.000Z",
"modificationDate": "2020-09-29T04:05:15.000Z",
"createdBy": "John Smith",
"modifiedBy": "John Smith",
"executionErrorCode": null
},
"meta":{
"schema":"https://api.cloudworks.anaplan.com/2/0/integrations/objects/run"
}
}
Note: If the ‘success’ parameter is false, contact to Anaplan support with the value of executionErrorCode
, to diagnose the root cause of failure.
/integrations/notification/{notificationId}
Use this to get your notification configuration details.
curl -X GET 'https://api.cloudworks.anaplan.com/2/0/integrations/notification/{notificationId}' \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"notifications": {
"notificationId": "067d1426ac964a7cac871c87790c4555",
"integrationIds": [
"214a2ac51e5a479aafd49e9228334515"
],
"channels": [
"email",
"in_app"
],
"notifications": {
"config": [
{
"type": "success",
"users": [
{
"userGuid": "2c9ba1b6729b7fd80172c3f635db40f7",
"firstName": "John",
"lastName": "Smith"
}
]
},
{
"type": "partial_failure",
"users": [
{
"userGuid": "2c9ba1b6729b7fd80172c3f635db40f7",
"firstName": "John",
"lastName": "Smith"
}
]
},
{
"type": "full_failure",
"users": [
{
"userGuid": "2c9ba1b6729b7fd80172c3f635db40f7",
"firstName": "John",
"lastName": "Smith"
}
]
}
]
}
},
"meta": {
"schema": "https://api.cloudworks.anaplan.com/2/0/integrations/objects/notification"
}
}
/integrations/notification
Use this call to cofigure a new integration notification.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrations/notification’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
{
"integrationIds": [
"214a2ac51e5a479aafd49e9228334515"
],
"channels": [
"email",
"in_app"
],
"notifications": {
"config": [
{
"type": "success",
"users": [
"2c9ba1b6729b7fd80172c3f635db40f7"
]
},
{
"type": "full_failure",
"users": [
"2c9ba1b6729b7fd80172c3f635db40f7"
]
},
{
"type": "partial_failure",
"users": [
"2c9ba1b6729b7fd80172c3f635db40f7"
]
}
]
}
}
JSON | Details |
---|---|
integrationIds |
|
channels |
["email","in_app"] |
config |
[{"type": "success","users": ["2c9ba1b6729b7fd80172c3f635db40f7"] |
type |
|
users |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"notification": {
"notificationId": "37945d3f7543463a859949e690dc4b60"
}
}
integrations/notifications/{notificationId}
Use this call to edit the configuration of an integration notification.
curl -X PUT ‘https://api.cloudworks.anaplan.com/2/0/integrations/notification/{notificationId}’ \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’ \
-d ‘{request body}'
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{notificationId} |
|
{
"integrationIds": [
"214a2ac51e5a479aafd49e9228334515"
],
"channels": [
"email",
"in_app"
],
"notifications": {
"config": [
{
"type": "success",
"users": [
"2c9ba1b6729b7fd80172c3f635db40f7"
]
},
{
"type": "full_failure",
"users": [
"2c9ba1b6729b7fd80172c3f635db40f7"
]
},
{
"type": "partial_failure",
"users": [
"2c9ba1b6729b7fd80172c3f635db40f7"
]
}
]
}
}
JSON | Details |
---|---|
integrationIds |
|
channels |
["email","in_app"] |
config |
[{"type": "success","users": ["2c9ba1b6729b7fd80172c3f635db40f7"] |
type |
|
users |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/notification/{notificationId}
Use this call to delete an integration notification.
curl -X DELETE https://api.cloudworks.anaplan.com/2/0/integrations/notification/{notificationId} \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{runId}/dumps} |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrations/run/{runId}/dumps
Use this call to get an import error log.
curl -X GET https://api.cloudworks.anaplan.com/2/0/integrations/run/{runId}/dumps \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
{
"status": {
"code": 200,
"message": "Success"
}
}
Example dumpfile (error log):
"Demo List","name","email","planet","_Line_","_Error_1_"
"a","","junk","","2","Invalid number: junk"
"b","","twelve","","3","Invalid number: twelve"
"c","eight","","","4","Invalid number: eight"
"d","night","","","5","Invalid number: night"
/integrations/run/{runId}/process/import/{actionId}/dumps
Use this call to get a process error log.
curl -X GET https://api.cloudworks.anaplan.com/2/0/integrations/run/{runId}/process/import/{actionId}/dumps \
-H ‘Authorization: AnaplanAuthToken {token_value}’ \
-H ‘Content-Type: application/json’
{
"status": {
"code": 200,
"message": "Success"
}
}
Example dumpfile (error log):
"Demo List","name","email","planet","_Line_","_Error_1_"
"a","","junk","","2","Invalid number: junk"
"b","","twelve","","3","Invalid number: twelve"
"c","eight","","","4","Invalid number: eight"
"d","night","","","5","Invalid number: night"
/integrationflows
Use this call to create a new integration flow for Anaplan CloudWorks.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrationflows’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
None
{
"name": "test-integration-flow-name",
"version": "2.0",
"type": "IntegrationFlow",
"steps": [
{
"type": "Integration",
"referrer": "step_integration_id_1",
"isSkipped": false,
"exceptionBehavior": [
{
"type": "failure",
"strategy": "stop"
}
]
},
{
"type": "Integration",
"referrer": "step_integration_id_2",
"dependsOn": [
"step_integration_id_1"
],
"isSkipped": false,
"exceptionBehavior": [
{
"type": "failure",
"strategy": "stop"
}
]
}
]
}
JSON | Details |
---|---|
name |
|
version |
|
steps |
|
type |
|
referrer |
|
dependsOn |
|
type |
|
isSkipped |
|
exceptionBehavior |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integrationFlow": {
"integrationFlowId": "fe40dc5793084f7dbb685cffe6a5ad2a"
}
}
/integrationflows’/{integrationFlowId}/run
Use this call to run an integration flow.
curl -X POST ‘https://api.cloudworks.anaplan.com/2/0/integrationflows/{integrationFlowId}/run’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationFlowId} |
|
{
"stepsToRun": ["step_ids..."]
}
JSON | Details |
---|---|
stepsToRun |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"run": {
"id": "hy40d89893084f0dkb985cmme9i5io2a"
}
}
/integrationflows
Use this call to retrieve all your integration flows.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrationflows \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{offset} |
|
{limit} |
|
{myIntegrations} |
|
Note: if this call does not provide {offset}
or {limit}
, it retrieves 25 integrations.
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integrationFlows": [
{
"id": "fe40dc5793084f7dbb685cffe6a5ad2a",
"name": "Sample Integration flow",
"createdBy": "user",
"creationDate": "2023-02-09T07:42:11.091Z",
"modificationDate": "2023-02-09T07:42:11.091Z",
"modifiedBy": "user",
"notificationId": "3fa85f6457174562b3fc2c963f66afa6",
"stepsCount": 10,
"latestRun": {
"id": "hy40d89893084f0dkb985cmme9i5io2a",
"triggeredBy": "John Smith",
"lastRun": "2020-09-28T23:09:31.000Z",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"success": true,
"message": "Success",
"executionErrorCode": null
}
}
],
"meta": {
"paging": {
"currentPageSize": 1,
"totalSize": 1,
"offset": 0
},
"schema": "https://api.anaplan.com/cloudworks/2/0/integrations/objects/integrationflows"
}
/integrationflows/{integrationFlowId}
Use this call to get details for a specific integration flow.
curl -X GET ‘https://api.cloudworks.anaplan.com/2/0/integrationflows/{integrationFlowId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’ \
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
},
"integrationFlow": {
"id": "fe40dc5793084f7dbb685cffe6a5ad2a",
"name": "Sample Integration Flow",
"createdBy": "user",
"creationDate": "2023-02-09T07:47:13.165Z",
"modificationDate": "2023-02-09T07:47:13.165Z",
"modifiedBy": "user",
"stepsCount": 2,
"notificationId": "3fa85f6457174562b3fc2c963f66afa6",
"steps": [
{
"referrer": "step_integration_1_id",
"name": "sample Integration",
"createdBy": "user",
"createdDate": "2023-02-09T07:47:13.165Z",
"modifiedDate": "2023-02-09T07:47:13.165Z",
"modifiedBy": "user",
"dependsOn": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"],
"type": "Process",
"exceptionBehavior": [
{
"type": "failure",
"strategy": "stop"
}
],
"isSkipped": false,
"workspaceId": "8a8196a36f9ff1cb017018c7b3f24756",
"modelId": "5BED7528B6884794AEEE705BC3E77EA3",
"accessible": false,
"latestRun": {
"triggeredBy": "user",
"success": true,
"message": "Success",
"lastRun": "2020-09-28T23:09:31.000Z",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"executionErrorCode": null
}
},
{
"referrer": "step_integration_2_id",
"name": "sample Integration",
"createdBy": "user",
"createdDate": "2023-02-09T07:47:13.165Z",
"modifiedDate": "2023-02-09T07:47:13.165Z",
"modifiedBy": "user",
"dependsOn": ["step_integration_1_id"],
"type": "Process",
"exceptionBehavior": [
{
"type": "failure",
"strategy": "stop"
}
],
"isSkipped": false,
"workspaceId": "8a8196a36f9ff1cb017018c7b3f24756",
"modelId": "5BED7528B6884794AEEE705BC3E77EA3",
"accessible": false,
"latestRun": {
"triggeredBy": "user",
"success": true,
"message": "Success",
"lastRun": "2020-09-28T23:09:31.000Z",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"executionErrorCode": null
}
}
],
"latestRun": {
"triggeredBy": "user",
"success": true,
"message": "Success",
"lastRun": "2020-09-28T23:09:31.000Z",
"startDate": "2020-09-28T23:09:31.000Z",
"endDate": "2020-09-28T23:13:07.000Z",
"executionErrorCode": null
}
},
"meta": {
"schema": "https://api.cloudworks.anaplan.com/2/0/integrations/objects/integrationflows"
}
}
/integrationflows/{integrationFlowId}
Use this call to edit an integration flow.
curl -X PUT ‘https://api.cloudworks.anaplan.com/2/0/integrationflows/{integrationFlowId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationFlowId} |
|
Note: For restricted integration users, the workspace ID of the integration needs match with the workspace ID of the associated connection.
{
"name": "Updated INF Name",
"version": "2.0",
"type": "IntegrationFlow",
"steps": [
{
"type": "Integration",
"referrer": "updated_step_integration_id_1",
"isSkipped": false,
"exceptionBehavior": [
{
"type": "failure",
"strategy": "stop"
}
]
},
{
"type": "Integration",
"referrer": "step_integration_id_2",
"dependsOn": [
"updated_step_integration_id_1"
],
"isSkipped": false,
"exceptionBehavior": [
{
"type": "failure",
"strategy": "stop"
}
]
}
]
}
JSON | Details |
---|---|
name |
|
version |
|
steps |
|
type |
|
referrer |
|
dependsOn |
|
type |
|
isSkipped |
|
exceptionBehavior |
|
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}
/integrationflows/{integrationFlowId}
Use this call to delete an integration flow.
curl -X DELETE ‘https://api.cloudworks.anaplan.com/2/0/integrationflows/{integrationFlowId}’ \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}’ \
-H ‘Content-Type: application/json’
Header | Details |
---|---|
Authorization: AnaplanAuthToken {anaplan_auth_token} |
|
Content-Type |
|
Parameter | Details |
---|---|
{integrationFlowId} |
|
None
Content-Type: application/json
{
"status": {
"code": 200,
"message": "Success"
}
}