curl -X POST 'https://api-staging.pixwel.com/api/users' \
-H 'Authorization: Basic <credentials>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"_id": "507f1f77bcf86cd799439011",
"status": {
"invited": true,
"approved": true,
"registered": true,
"confirmed": true
},
"name": "string",
"username": "user@example.com",
"emailNormal": "user@example.com",
"invite": "https://example.com/path/to/object",
"preferences": {
"blacklist": {
"projects": [
"507f1f77bcf86cd799439011"
]
},
"ingest": {
"maxUploads": 0,
"skipScratchPreview": true
},
"mail": {
"assets": 0,
"enabled": true,
"files": 0,
"ingest": 0,
"offline_comments": 0,
"others": 0,
"projects": 0,
"shares": 0,
"work_requests": 0,
"work_request_comments": 0,
"workflow": 0,
"work_request_graphics_materials": 0,
"work_request_graphics_materials_comments": 0
},
"contactLists": null,
"reports": {
"exceptions": {
"presets": [
{
"name": "string",
"columns": [
null
],
"active": true
}
]
},
"groupSpending": {
"presets": [
{
"name": "string",
"columns": [
null
],
"active": true
}
]
},
"workRequests": {
"presets": [
{
"name": "string",
"columns": [
null
],
"active": true
}
]
}
}
},
"territory": {
"_id": "507f1f77bcf86cd799439011",
"name": "string",
"$links": {
"self": "//example.com/path/to/object"
}
},
"created": 0,
"$links": {
"self": "//example.com/path/to/object",
"territory": "//example.com/path/to/object"
},
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "string",
"addresses": null,
"studios": [
"507f1f77bcf86cd799439011"
],
"type": "string",
"users": [
"507f1f77bcf86cd799439011"
],
"$links": {
"self": "//example.com/path/to/object"
}
}
],
"downloads": [
"507f1f77bcf86cd799439011"
],
"queue": null
}'