Request

Retrieves source items for multiple fields in a specified content type. Returns the source items page and a continuation token for the next field page. Pass a field response's continuationToken to the single-field GET endpoint 'Get content type field source' to continue that field. Pass the top-level continuationToken to this endpoint to continue the requested field collection via the x-sc-continuation header.

Security
Bearer
Path
modelIdstringrequired

The content type identifier.

Example:model-id
Query
siteIdstring

The site identifier.

Example:siteId=site-id
environmentIdstring

The environment identifier. Defaults to "main". Currently only "main" is supported.

Example:environmentId=main
pageSizeinteger, (int32)

The maximum number of fields to return.

Example:pageSize=10
sourcePageSizeinteger, (int32)

The maximum number of source items to return per field.

Example:sourcePageSize=10
Headers
x-sc-continuationstring

The continuation token returned by a previous response.

Example:token-from-previous-response
Body

The field identifiers to resolve, in request order.

fieldIdsArray of strings, non-emptyrequired

The content type field identifiers, in the order in which results should be returned.

Example:
[ "110D559F-DEA5-42EA-9C1C-8A5DF7E70EF", "220D559F-DEA5-42EA-9C1C-8A5DF7E70EF" ]
curl -i -X POST \
  'https://edge-platform.sitecorecloud.io/authoring/api/v1/content-types/model-id/sources?siteId=site-id&environmentId=main&pageSize=10&sourcePageSize=10' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-sc-continuation: token-from-previous-response' \
  -d '{
    "fieldIds": [
      "110D559F-DEA5-42EA-9C1C-8A5DF7E70EF",
      "220D559F-DEA5-42EA-9C1C-8A5DF7E70EF"
    ]
  }'

Responses

OK

Bodyapplication/json
fieldsArray of objects or null(BulkFieldSourceResponse)

The source results for fields in the current page.

continuationTokenstring or null

The opaque token for retrieving the next field page, or null when complete.

Example:"opaque-token-from-previous-response"
Response
{ "fields": [ { … } ], "continuationToken": "opaque-token-from-previous-response" }