API → OrgsAdd a member to your org

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties
    • email

      string / Email Address
      optional
    • role

      string
      optional
      Possible values
      • admin:  Admins can do anything in the org.
      • member:  Members of an org can not modify an org, but they belong in the org.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • company

      string
      optional
    • created_at

      string / ISO-8601
      optional
    • discord

      string
      optional
    • email

      string / Email Address
      optional
    • email_verified

      string / ISO-8601
      optional
    • first_name

      string
      optional
    • github

      string
      optional
    • id

      string / UUID
      optional
    • image

      string / URL
      optional
    • last_name

      string
      optional
    • name

      string
      optional
    • phone

      string / Phone Number
      optional
    • role

      string
      optional
      Possible values
      • admin:  Admins can do anything in the org.
      • member:  Members of an org can not modify an org, but they belong in the org.
      • service_account:  A service account role.
    • updated_at

      string / ISO-8601
      optional
post
/org/members
$ curl -X POST "https://api.zoo.dev/org/members" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "email": "X5aWVhkzz@.com",
  "role": "admin"
}'
201 Created
Response
{
  "company": "",
  "created_at": "2024-07-27T01:15:51.760Z",
  "discord": "rGRzzKdAoH3oL",
  "email": "Ku8@jMJhcc.com",
  "email_verified": "2024-07-27T01:15:51.760Z",
  "first_name": "R4TT53KKrDQijHIXLwUN0XW",
  "github": "9WivEmGx",
  "id": "2741ef23-eb70-4a65-a79d-5f14f5e5a55a",
  "image": "https://4I1.9O.com/LwLESE/vgI",
  "last_name": "E6oQsc7O4HQnnivcqur5jmfaEk8I",
  "name": "CMbTppt",
  "phone": "+1-175-696-6945",
  "role": "member",
  "updated_at": "2024-07-27T01:15:51.760Z"
}