createTemplate

POST
1
/{orgId}/{itemId}/templates/{templateType}

Create a new template

Create a new template. The adminBasic or adminAdvanced privilege is required.

Request:

ParameterDescriptionData Type
templateTypeRequired. The type of template you will create. Create an email template by entering 'email', a Web Request Template by entering 'webRequest', or a Step Template by entering 'step'. Or, enter your own value to define a custom template.String

Body:

ParameterDescriptionData Type
templateIdOptional. The ID of the new template to be defined.String
templateNameRequired. The name of the new template. Case sensitive.String
templateDetailsRequired. Information to be stored in the template.String

Query parameters

NameTypeRequired

token

string

Body parameters

Supported content types: application/json

NameTypeRequiredDescription

The template to be created

body

The template to be created

Path parameters

NameTypeRequired

templateType

string

orgId

string

itemId

string

Examples

Request

1
2
3
4
5
6
# You can also use wget
curl -X POST /{orgId}/{itemId}/templates/{templateType} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  --data '{"templateId":"string","templateName":"string","templateDetails":"string"}'

Response

StatusMeaningDescriptionSchema

200

OK

success

Inline

500

Internal Server Error

error

WorkflowJsonExceptionDTO

Response details

Status Code 200

CreateTemplateResponse

NameTypeRequired

templateId

string

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close