Bulk Update Prices
Updates prices in bulk for courses and learning paths
Updates prices in bulk for courses and learning paths.
POST
https://example.thoughtindustries.com/incoming/v2/content/bulkUpdatePricesExample 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
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
courses | BulkUpdatePricesContentInput[] | Yes | body | Array of course price inputs to update. |
learningPaths | BulkUpdatePricesContentInput[] | Yes | body | Array 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
| Field | Type | Description |
|---|---|---|
updatedRecordCount | integer | Total number of price records successfully updated. |
errors | BulkAssignmentUserError[] | List of errors encountered during the bulk update operation. |
errors.id | uuid | Unique identifier of the record that failed to update. |
errors.identifier | string | Human-readable identifier (such as a slug or external ID) of the failed record. |
errors.error | string | Description of the error that prevented the price update. |
errors.record | string | Name or reference of the content record that failed to update. |