Aller au contenu principal

Cette page est disponible uniquement en anglais (This page is only available in English).

Create News

POST 

https://api.orange.com/evolutionplatform/referentiel/api/v1//news

This operation allows to create a News

Request

Body

news to create

    dateStartdaterequired

    start date of the news

    Possible values: non-empty, Value must match regular expression ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

    Example: 2022-03-10
    dateEnddaterequired

    end date of the news

    Possible values: non-empty, Value must match regular expression ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

    Example: 2022-03-10
    eventTypestringrequired

    event Type

    Possible values: Value must match regular expression \S

    informationstringrequired

    informations about the news

    Possible values: Value must match regular expression \S

    statusstringrequired

    news state

    Possible values: [ACTIVE, DESACTIVE]

Responses

created

Schema
    iduuid

    news id

    Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    dateStartdate

    start date of the news

    Example: 2022-03-10
    dateEnddate

    end date of the news

    Example: 2022-03-10
    eventTypestring

    event Type

    informationstring

    informations about the news

    statusstring

    news state

    Possible values: [ACTIVE, DESACTIVE]

Authorization: oauth2

name: oauth2clientcredentialstype: oauth2flows: {
  "clientCredentials": {
    "tokenUrl": "https://api.orange.com/oauth/v3/token",
    "scopes": {}
  }
}
curl -L 'https://api.orange.com/evolutionplatform/referentiel/api/v1//news' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"dateStart": "2022-03-10",
"dateEnd": "2022-03-10",
"eventType": "string",
"information": "string",
"status": "ACTIVE"
}'
Request Collapse all
Base URL
https://api.orange.com/evolutionplatform/referentiel/api/v1/
Auth
Body
{
  "dateStart": "2022-03-10",
  "dateEnd": "2022-03-10",
  "eventType": "string",
  "information": "string",
  "status": "ACTIVE"
}