Skip to main content

Create News

POST 

/news

This operation allows to create a News

Request

Body

news to create

    dateStart daterequired

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

    start date of the news

    dateEnd daterequired

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

    end date of the news

    eventType stringrequired

    Possible values: Value must match regular expression \S

    event Type

    information stringrequired

    Possible values: Value must match regular expression \S

    informations about the news

    status stringrequired

    Possible values: [ACTIVE, DESACTIVE]

    news state

Responses

created

Schema

    id uuid

    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}

    news id

    dateStart date

    start date of the news

    dateEnd date

    end date of the news

    eventType string

    event Type

    information string

    informations about the news

    status string

    Possible values: [ACTIVE, DESACTIVE]

    news state

Loading...