Teams

Create a team

Create an team.

post/teams

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/teams
  • Auth: HTTP bearer

Request body

namestring required
team_type_idstring uuid nullable required

Example request

{
  "name": "Team A",
  "team_type_id": "123e4567-e89b-12d3-a456-426614174000"
}

Response

Team created successfully

idstring uuid required
namestring required
slugstring required
referral_codestring nullable required
stripe_customer_idstring nullable required
team_type_idstring uuid nullable required
hubspot_company_idstring nullable required
pro_pricing_enabledboolean required
has_completed_onboardingboolean required
can_access_paid_media_listboolean required
is_publisherboolean required
daily_order_dispatch_enabledboolean required
agreement_documentstring nullable required
website_urlstring uri nullable required
publisher_pending_outlet_capinteger nullable required
outlet_ownership_proof_exemptboolean required
contact_emailstring email nullable required
billing_emailstring email nullable required
profile_idstring uuid required

Example response

{
  "name": "Team A",
  "slug": "team-a-5500b34370e9",
  "referral_code": "TEAM-ABC123",
  "stripe_customer_id": "cus_ABc241X",
  "team_type_id": "123e4567-e89b-12d3-a456-426614174000",
  "hubspot_company_id": "123456789",
  "pro_pricing_enabled": true,
  "contact_email": "contact@team.com",
  "billing_email": "billing@team.com",
  "membership": {
    "user_id": "8322419c-c182-45ef-a3b9-f294719f3b3a",
    "team_id": "648a7c9a-0ca6-49d6-90ac-0096d43b9714",
    "role": "MEMBER",
    "first_name": "Bernardo",
    "last_name": "Watsica",
    "email": "Tatum_Grady@gmail.com"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.