Create a resource

Creates a resource in an endpoint version. The resource's full URL (concatenated hostname, basePath, and resourcepath) needs to be unique within the account. You can only create resources for versions that have never been activated on the staging or production network.

Path Params
integer
required

The unique identifier for the endpoint version.

integer
required

The unique identifier for the endpoint.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params
integer | null

For cloned resources, the unique identifier for the source resource.

integer

The unique identifier for the resource.

integer

The unique identifier for the resource across all endpoint versions.

apiResourceMethodNameLists
array of strings

HTTP methods the resource may respond to.

apiResourceMethodNameLists
apiResourceMethods
array of objects

HTTP methods the resource may respond to.

apiResourceMethods
string
required

The name of the resource.

date-time

The ISO 8601 timestamp indicating when you created the resource.

string

The identifier for the user who created the resource.

string | null

The description to clarify the resource's function within the API. If you specify null in the request or omit this member from the object, the JSON response reflects it as an empty string.

string | null
integer

The identifier used for optimistic locking. See Concurrency control for details.

boolean

Whether the resource is private. API consumers can access private resources only if they identify with an appropriate API key.

string
required

The URL path relative to the hostnames on which the resource resides. When entering a resource path, you can use curly brackets ({}) to define path parameters (for example, /path/{pathparam}). If you decide to do so, ensure that the value of the apiParameterName member in the corresponding parameter definition matches the name that you specified in the resource path.

date-time

The ISO 8601 timestamp indicating when you last modified the resource.

string

The identifier for the user who last modified the resource.

Response

Language
Authentication
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json