Skip to main content
https://.thoughtindustries.com

Bulk Update Prices

Updates prices in bulk for courses and learning paths

Updates prices in bulk for courses and learning paths.

POSThttps://example.thoughtindustries.com/incoming/v2/content/bulkUpdatePrices

Example request

curl -X POST "https://example.thoughtindustries.com/incoming/v2/content/bulkUpdatePrices" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "courses": [],
  "learningPaths": []
}'

Parameters

NameTypeRequiredLocationDescription
coursesBulkUpdatePricesContentInput[]YesbodyArray of course price inputs to update.
learningPathsBulkUpdatePricesContentInput[]YesbodyArray of learning path price inputs to update.

Example response

{
  "data": {
    "APIBulkUpdatePrices": {
      "updatedRecordCount": 0,
      "errors": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "identifier": "string",
          "error": "string",
          "record": "string"
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
updatedRecordCountintegerTotal number of price records successfully updated.
errorsBulkAssignmentUserError[]List of errors encountered during the bulk update operation.
errors.iduuidUnique identifier of the record that failed to update.
errors.identifierstringHuman-readable identifier (such as a slug or external ID) of the failed record.
errors.errorstringDescription of the error that prevented the price update.
errors.recordstringName or reference of the content record that failed to update.