Lift your suspension of a user's domains
posthttps://api.nsin.ir/reseller/v1/users/{id}/unsuspend
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
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/unsuspend" \
-H "Authorization: Bearer $NSIN_API_KEY"