Create Many Xp
POST/v1/sandbox/:sandbox_id/xp
Create many XP. Requires permission sandbox:config:edit.
Request
Path Parameters
Sandbox ID
- application/json
Body
required
Array [
Array [
]
]
data
object[]
required
Possible values: >= 1
The Xp to create.
custom_data
object
Custom data associated with the resource
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
xp_thresholds
object[]
The XP Thresholds.
custom_data
object
Custom data associated with the resource
The XP Threshold value.
Default value: 0
The legacy ID of the XP.
Responses
- 201
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
custom_data
object
Custom data associated with the resource
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
xp_thresholds
object[]
The XP Thresholds.
custom_data
object
Custom data associated with the resource
The XP Threshold value.
The ID of the XP Threshold.
ID of the Sandbox
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
The ID of the XP.
The legacy ID of the XP.
[
{
"custom_data": {},
"name": "string",
"description": "string",
"xp_thresholds": [
{
"custom_data": {},
"xp_level_threshold": 0,
"xp_level_threshold_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"xp_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"legacy_xp_id": 0
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}