Openapi
Replace all members assigned to a team.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidteamId*stringuuidThe complete member assignment for the team.
application/jsonuserIds*array<>items <= 200Returns the updated team detail.
application/jsoncreatedAt*stringdate-timecreatedBy*|uuiddescription*|nulliconName*teamIconNameSchema^[A-Za-z0-9]+Icon$1 <= length <= 120id*teamIdSchemauuidmemberCount*integer0 <= valuename*string1 <= lengthorganizationId*organizationIdSchemauuidslug*teamSlugSchema^[a-z0-9]+(?:-[a-z0-9]+)*$2 <= length <= 64status*teamStatusSchema"active""archived"updatedAt*stringdate-timeupdatedBy*|uuidmembers*array<>curl -X PUT 'https://app.localhost/api/v1/organizations/123/teams/123/members' \ -H 'Content-Type: application/json' \ -d '{ "userIds": [ "416ebe2c-ad2f-4853-b1f3-0c3479151dfe" ]}'{ "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "description": "string", "iconName": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "memberCount": 0, "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "slug": "string", "status": "active", "updatedAt": "2019-08-24T14:15:22Z", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "members": [ { "avatarUrl": "http://example.com", "createdAt": "2019-08-24T14:15:22Z", "email": "user@example.com", "firstName": "string", "lastName": "string", "roleName": "string", "updatedAt": "2019-08-24T14:15:22Z", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b" } ]}