POST Offres/Create

Crée une nouvelle offre dans l'API.

Request Information

URI Parameters

None.

Body Parameters

OFFRES
NameDescriptionTypeAdditional information
ID_OFFRE

integer

None.

ST_CODE

string

None.

LIBELLE

string

None.

ID_SUPPORT

integer

None.

PRESTA_ID

string

None.

Description

string

None.

PRICE

integer

None.

AVAILABILITY

integer

None.

LINK

string

None.

Picture_Link

string

None.

MIN_AGE

integer

None.

MAX_AGE

integer

None.

START_DATE

date

None.

END_DATE

date

None.

EXTERNAL_APP

string

None.

EXTERNAL_REF

string

None.

DATE_CREATION

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID_OFFRE": 1,
  "ST_CODE": "sample string 2",
  "LIBELLE": "sample string 3",
  "ID_SUPPORT": 4,
  "PRESTA_ID": "sample string 5",
  "Description": "sample string 6",
  "PRICE": 7,
  "AVAILABILITY": 8,
  "LINK": "sample string 9",
  "Picture_Link": "sample string 10",
  "MIN_AGE": 11,
  "MAX_AGE": 12,
  "START_DATE": "2021-12-01T17:30:58.4185253+01:00",
  "END_DATE": "2021-12-01T17:30:58.4185253+01:00",
  "EXTERNAL_APP": "sample string 15",
  "EXTERNAL_REF": "sample string 16",
  "DATE_CREATION": "2021-12-01T17:30:58.4185253+01:00"
}

Response Information

Resource Description

201 si ok avec en retour l'offre créée et son id.

OFFRES
NameDescriptionTypeAdditional information
ID_OFFRE

integer

None.

ST_CODE

string

None.

LIBELLE

string

None.

ID_SUPPORT

integer

None.

PRESTA_ID

string

None.

Description

string

None.

PRICE

integer

None.

AVAILABILITY

integer

None.

LINK

string

None.

Picture_Link

string

None.

MIN_AGE

integer

None.

MAX_AGE

integer

None.

START_DATE

date

None.

END_DATE

date

None.

EXTERNAL_APP

string

None.

EXTERNAL_REF

string

None.

DATE_CREATION

date

None.

Response Formats

application/json, text/json

Sample:
{
  "ID_OFFRE": 1,
  "ST_CODE": "sample string 2",
  "LIBELLE": "sample string 3",
  "ID_SUPPORT": 4,
  "PRESTA_ID": "sample string 5",
  "Description": "sample string 6",
  "PRICE": 7,
  "AVAILABILITY": 8,
  "LINK": "sample string 9",
  "Picture_Link": "sample string 10",
  "MIN_AGE": 11,
  "MAX_AGE": 12,
  "START_DATE": "2021-12-01T17:30:58.4185253+01:00",
  "END_DATE": "2021-12-01T17:30:58.4185253+01:00",
  "EXTERNAL_APP": "sample string 15",
  "EXTERNAL_REF": "sample string 16",
  "DATE_CREATION": "2021-12-01T17:30:58.4185253+01:00"
}