Agreements - SocialGouv/code-du-travail-backoffice GitHub Wiki

Description

The agreements represent the labor agreements.

List agreements

GET /agreements

Response

Array<{
  id: UUID
  name: string
  idcc: string
  created_at: string
  updated_at: string
  parent_id: UUID | null
}>

An agreement has a non-null parent_id value when this agreement depends on another agreements for generic references, which is the casem for example, when a specific answer falls back to a national agreement because there is no specific content about this subject in the local one.

Examples

Get an agreement by its IDCC

curl https://contributions-api.codedutravail.fabrique.social.gouv.fr/agreements?select=*,agreement:parent_id(*)&idcc=eq.1375