nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Reseller

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
json
{
  "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.

json
{
  "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.

json
{
  "error": "read-only API key"
}
404No user with this id among yours.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "user not found"
}

Example request

bash
curl -X POST "https://api.nsin.ir/reseller/v1/users/0/unsuspend" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc