Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.45 KB

osMilestone_create.rst

File metadata and controls

64 lines (42 loc) · 1.45 KB

osMilestone_create

POST /distributions/{id}/milestones

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 3.5

Creates a milestone for an operating system.

Please refer to milestone-object for a complete list of all the milestone attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: None

URI Parameters

  • id (required): the id of the milestone-object

HTTP Request Body Parameters

A milestone-object object

Example Request

curl "https://uforge.example.com/api/distributions/{id}/milestones" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:milestone xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>Milestone Example</name>
    <date>2016-06-17T08:31:08.000Z</date>
    <source>test</source>
</ns0:milestone>
  • distribprofile-object
  • milestone-object
  • osMilestone-create
  • osMilestone-delete
  • osMilestone-get
  • osMilestone-getAll
  • osMilestone-update