Menu

CreateOwner

Jim

Create new Owner

Creates a new owner and returns the newly created owner, can only be executed with the admin apikey

Path: cs-ws/resources/admin/owners Method: POST

Parameters

  • apikey

Data

<owner>
   <apikey>...</apikey>        apikey for the created owner 
   <id>...</id>                optional id, if empty name is taken as id
   <name>...</name>            name of the owner
</owner>

Errors:

  • 401 UNAUTHORIZED if key is invalid or not admin key
  • 409 CONFLICT if owner already exists

Example

POST http://localhost/cs-ws/resources/admin/owners?apikey=1234 HTTP/1.1
<owner>
   <apikey>9999</apikey>
   <name>test5</name>
</owner>

HTTP/1.1 201 Created
<ownerEntity>
   <data>
      <apikey>9999</apikey>
      <id>test5</id>
      <name>test5</name>
   </data>
   <success>true</success>
</ownerEntity>

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.