ApiSpecifications

List API specifications

get
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Query parameters
PageNumberinteger · int32Optional

Current page number. Default value is 1.

PageSizeinteger · int32Optional

Maximum page size is 200. Default page size is 30.

Responses
get
/api/v1/api-management/api-specifications
200

OK

Create API specification

post

The Base path (openAPI 2) / Server url (openAPI 3) cannot be modified later.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Body
stringOptional
Responses
201

API specification created

application/json
post
/api/v1/api-management/api-specifications

Import API specification

post

This can be a very slow action. Please make sure your client has a long enough timeout so that the operation does not get cancelled. This creates version 1 of the API specification to the default Agent group. The Base path (openAPI 2) / Server url (openAPI 3) cannot be modified later.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Body

File to upload.

filestring · binaryRequired
Responses
201

API specification created

application/json
post
/api/v1/api-management/api-specifications/import

Get a single API specification

get
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API specification identifier

Responses
get
/api/v1/api-management/api-specifications/{id}

Update API specification

put
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API specification identifier

Body
stringOptional
Responses
put
/api/v1/api-management/api-specifications/{id}

No content

Get a specific version of an API specification

get
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

Responses
get
/api/v1/api-management/api-specifications/{id}/{apiVersion}

Delete API specification from an Agent Group

delete

To delete a specification from the default Agent group, it must first be deleted from all other Agent groups. Deleting the API specification from the default Agent group deletes it permanently. Linked processes are not deleted.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
apiSpecificationIdinteger · int64Required

API specification identifier

agentGroupIdinteger · int64Required

Agent Group identifier

Responses
delete
/api/v1/api-management/api-specifications/{apiSpecificationId}/agent-group/{agentGroupId}

Get process template for a specific endpoint of an API specification

post
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

Body
pathstringOptional

The path of the HTTP endpoint, as specified in the API specification

operationstringOptional

The operation of the endpoint (e.g. GET)

Responses
post
/api/v1/api-management/api-specifications/{id}/{apiVersion}/processTemplate

Publish ("save") the active version of an API specification

post

This locks down the current specification and process versions. A new active version is created, and the previous one becomes deployable.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API specification identifier

Body
changeDescriptionstring | nullableOptional

Description of the changes made

Responses
post
/api/v1/api-management/api-specifications/{id}/publish

No content

Begin deploying a version of an API specification to an Agent Group

post

Returns information about the processes which must be deployed to finish the API deployment. The processes can be deployed using the process-deployments API.

Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

agentGroupIdinteger · int64Required

Agent Group identifier

Responses
post
/api/v1/api-management/api-specifications/{id}/{apiVersion}/deploy/{agentGroupId}

No content

List API passthrough configurations

get
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
apiSpecificationIdinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

Responses
get
/api/v1/api-management/api-specifications/{apiSpecificationId}/{apiVersion}/api-passthrough

Create API passthrough configuration

post
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
apiSpecificationIdinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

Body
corsEnabledbooleanOptional

Is CORS enabled

allowedOriginsstring[] | nullableOptional

Allowed origins. Used when CORS is enabled.

pathstring | nullableOptional

Source API path for this passthrough configuration. Not used when IsDefault is set to true.

methodstring | nullableOptional

HTTP method. Not used when IsDefault is set to true.

isDefaultbooleanOptional

Is this configuration used for all paths and HTTP methods

Responses
201

API passthrough configuration created

No content

post
/api/v1/api-management/api-specifications/{apiSpecificationId}/{apiVersion}/api-passthrough

No content

Update API passthrough configuration

put
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
apiSpecificationIdinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

passthroughConfigIdinteger · int64Required

API passthrough configuration identifier

Body
corsEnabledbooleanOptional

Is CORS enabled

allowedOriginsstring[] | nullableOptional

Allowed origins. Used when CORS is enabled.

Responses
put
/api/v1/api-management/api-specifications/{apiSpecificationId}/{apiVersion}/api-passthrough/{passthroughConfigId}

Delete API passthrough configuration

delete
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
apiSpecificationIdinteger · int64Required

API specification identifier

apiVersioninteger · int32Required

API specification version

passthroughConfigIdinteger · int64Required

API passthrough configuration identifier

Responses
delete
/api/v1/api-management/api-specifications/{apiSpecificationId}/{apiVersion}/api-passthrough/{passthroughConfigId}

No content

Was this helpful?