Skip to content
Pitch2SaleDevelopers
Open the app
Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.

Delete a user and transfer their records

DELETE
/api/v1/users/{id}
curl --request DELETE \
--url https://api.pitch2sale.com/api/v1/users/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "transfer_to_user_id": "example", "acknowledge_data_deletion": true }'

Organization owner only. Name an heir in transfer_to_user_id to receive the user’s records, or set acknowledge_data_deletion: true to move them to the trash; refused if the user owns records and neither is given. To block access reversibly, deactivate instead.

id
required
string
Media typeapplication/json
object
transfer_to_user_id
string
/^[0-9a-fA-F]{24}$/
acknowledge_data_deletion
boolean
Examplegenerated
{
"transfer_to_user_id": "example",
"acknowledge_data_deletion": true
}

OK

Validation failed

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Authentication required or token invalid

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Rate limit exceeded

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}