YouTrack InCloud 2019.2 Help

Operations with Specific RestCorsSettings

Resource

/api/admin/globalSettings/restSettings

Returned entity

RestCorsSettings. For the description of the entity attributes, see Supported Fields section.

Supported methods

RestCorsSettings attributes

REST API configuration.

This table describes attributes of the RestCorsSettings entity.

  • To receive an attribute in the response from server, specify it explicitly in the request parameter fields.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

allowedOrigins

Array of Strings

Origins that are allowed for cross-origin requests.

allowAllOrigins

Boolean

Indicates whether requests from all origins are allowed.

Read a Specific RestCorsSettings

Request syntax

GET /api/admin/globalSettings/restSettings/{settingsID}?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of RestCorsSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned.

Update a Specific RestCorsSettings

Request syntax

POST /api/admin/globalSettings/restSettings/{settingsID}?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of RestCorsSettings attributes that should be returned in the response. If no field is specified, only the entityID is returned.

Last modified: 17 July 2019