Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Agreements

Ivan Gabriele edited this page Feb 21, 2020 · 10 revisions

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