Suspend a user's domains
posthttps://api.nsin.ir/reseller/v1/users/{id}/suspend
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Pauses every live domain of the user at the edge. This is your own pause, kept apart from a billing pause (which a wallet top-up lifts). A domain added after this call is not paused; suspend again if needed.
Path parameters
- idintegerrequiredpath
The id of one of your users.
Responses
200How many domains changed.
Content type: application/json
- domains_changedinteger
- suspendedboolean
{
"domains_changed": 0,
"suspended": true
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}403The key is read-only and this endpoint is a write. Read-only keys may
only issue GET, HEAD and OPTIONS.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}404No user with this id among yours.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "user not found"
}Example request
curl -X POST "https://api.nsin.ir/reseller/v1/users/0/suspend" \
-H "Authorization: Bearer $NSIN_API_KEY"