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": "PKnDG@WM.com",
  "role": "admin"
}'
201 Created
Response
{
  "company": "FRoMySihEyWB2Gg4rrwKr1Y",
  "created_at": "2024-04-18T22:04:33.920Z",
  "discord": "OuJxKjrx4TQa3C3x8bs60",
  "email": "kT5B5YV5@3.com",
  "email_verified": "2024-04-18T22:04:33.920Z",
  "first_name": "pOzV8cAWccj",
  "github": "t0g2vSxiY",
  "id": "04385fa8-10b3-4a68-bff1-b3684dc85989",
  "image": "https://ys7vxltqQbbH.tTphQy.com/NtNiXpU/dU11DFW8MzBO",
  "last_name": "k6SAte0myCdyJOEA",
  "name": "Sdm9OnE8SLInTJaQ8q3MLCibQ5",
  "phone": "+1-789-636-4474",
  "role": "admin",
  "updated_at": "2024-04-18T22:04:33.920Z"
}