Skip to content

Remove a member

DELETE
/domains/{domain}/members/{userId}
curl --request DELETE \
--url https://api.nsin.ir/domains/example.com/members/1 \
--header 'Authorization: Bearer <token>'

Revokes the member’s access. The owner cannot be removed. Requires members.manage.

domain
required
string

The domain name (for example example.com) — not a numeric id.

Example
example.com
userId
required
integer

The member’s user id, from the member list.

Removed.

Media type application/json
object
message
string
Example
{
"message": "deleted"
}

Invalid user id, or an attempt to remove the owner.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

The key is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

Domain or member not found.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}