Create News
POSThttps://api.orange.com/evolutionplatform/referentiel/api/v1//news
This operation allows to create a News
Request
- application/json
Body
news to create
start date of the news
Possible values: non-empty
, Value must match regular expression ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
2022-03-10
end date of the news
Possible values: non-empty
, Value must match regular expression ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
2022-03-10
event Type
Possible values: Value must match regular expression \S
informations about the news
Possible values: Value must match regular expression \S
news state
Possible values: [ACTIVE
, DESACTIVE
]
Responses
- 201
- 400
- 401
- 403
- 500
created
- application/json
- Schema
- Example (auto)
Schema
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}
start date of the news
2022-03-10
end date of the news
2022-03-10
event Type
informations about the news
news state
Possible values: [ACTIVE
, DESACTIVE
]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateStart": "2022-03-10",
"dateEnd": "2022-03-10",
"eventType": "string",
"information": "string",
"status": "ACTIVE"
}
bad request
- application/json
- Schema
- Example (auto)
Schema
bad request code
bad request message
bad request status
bad request title
violations object[]
{
"code": 0,
"message": "string",
"status": 0,
"title": "string",
"violations": [
{
"field": "string",
"message": "string"
}
]
}
unauthorized access
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
forbidden access
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
internal error
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
Authorization: oauth2
name: oauth2clientcredentialstype: oauth2flows: {
"clientCredentials": {
"tokenUrl": "https://api.orange.com/oauth/v3/token",
"scopes": {}
}
}
- curl
- python
- go
- nodejs
- php
- java
- CURL
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"
}'