Skip to content

List a business's card groups

GET/v1/businesses/{id}/card-groups

Requires an API client bearer token.

Lists the business's card groups, oldest first. An API client names its acting person in X-Rigid-Acting-Person (400 acting_person_required without it); the person needs an active membership of the business, else 403 acting_person_not_permitted. Every read writes one business.read audit intent with the decision. While the `business-cards` release flag is off for the caller's mode this route answers 404 to every authenticated, well-formed request, as if absent.

Parameters

Path parameters

NameRequiredDescription
idrequired

Query parameters

NameRequiredDescription
limitoptional
starting_afteroptional

Header parameters

NameRequiredDescription
X-Rigid-Acting-Personoptional

Example

curl https://api.rigid.fi/v1/businesses/{id}/card-groups \
  -H "Authorization: Bearer $RIGID_API_TOKEN"

Responses

200

List a business's card groups — the result.

dataarray of objectrequired
+ show properties
idstring (uuid)required
business_idstring (uuid)required
namestringrequired
created_atstring (date-time)required
has_morebooleanrequired
next_cursorstring (uuid) | nullrequired
400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Business not found, or the business routes are not released

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring