Request

POST /user/
Content-Type: application/json
{
    "specific_permissions": {
        "invoicing_access": false
    }, 
    "email": "nobody1@vosae.com", 
    "groups": [
        "/api/v1/group/5231cbd54ab63c53dc900473/"
    ], 
    "settings": {}
}

Response

201 Created
Content-Type: application/json
Location: /user/5231cbe84ab63c53dc9004a4/
{
    "status": "ACTIVE", 
    "full_name": "", 
    "settings": {
        "email_signature": null, 
        "language_code": null, 
        "gravatar_email": null
    }, 
    "id": "5231cbe84ab63c53dc9004a4", 
    "groups": [
        "/api/v1/group/5231cbd54ab63c53dc900473/"
    ], 
    "photo_uri": null, 
    "resource_uri": "/api/v1/user/5231cbe84ab63c53dc9004a4/", 
    "specific_permissions": {
        "invoicing_access": false
    }, 
    "email": "nobody1@vosae.com", 
    "permissions": [
        "change_vosaeuser", 
        "see_vosaegroup", 
        "delete_item", 
        "core_access", 
        "see_item", 
        "add_invoicebase", 
        "organizer_access", 
        "add_vosaegroup", 
        "delete_vosaefile", 
        "delete_contact", 
        "contacts_access", 
        "change_vosaegroup", 
        "see_invoicebase", 
        "delete_invoicebase", 
        "change_contact", 
        "post_invoicebase", 
        "add_vosaeuser", 
        "add_contact", 
        "delete_vosaegroup", 
        "delete_vosaeuser", 
        "change_appconf", 
        "add_vosaefile", 
        "see_vosaefile", 
        "change_invoicingsettings", 
        "see_vosaeuser", 
        "see_contact", 
        "add_item", 
        "change_invoicebase", 
        "change_item", 
        "transmit_invoicebase"
    ]
}

Request

POST /user/
Content-Type: application/xml
<object>
  <groups type="list">
    <value>/api/v1/group/5231cbd54ab63c53dc900473/</value>
  </groups>
  <email>nobody2@vosae.com</email>
  <specific_permissions type="hash">
    <invoicing_access type="boolean">False</invoicing_access>
  </specific_permissions>
  <settings type="hash"/>
</object>

Response

201 Created
Content-Type: application/xml; charset=utf-8
Location: /user/5231cbea4ab63c53dc9004a8/
<object>
  <status>ACTIVE</status>
  <specific_permissions type="hash">
    <invoicing_access type="boolean">False</invoicing_access>
  </specific_permissions>
  <settings>
    <email_signature type="null"/>
    <language_code type="null"/>
    <gravatar_email type="null"/>
  </settings>
  <full_name/>
  <id>5231cbea4ab63c53dc9004a8</id>
  <groups type="list">
    <value>/api/v1/group/5231cbd54ab63c53dc900473/</value>
  </groups>
  <photo_uri type="null"/>
  <permissions type="list">
    <value>change_vosaeuser</value>
    <value>see_vosaegroup</value>
    <value>delete_item</value>
    <value>core_access</value>
    <value>see_item</value>
    <value>add_invoicebase</value>
    <value>organizer_access</value>
    <value>add_vosaegroup</value>
    <value>delete_vosaefile</value>
    <value>delete_contact</value>
    <value>contacts_access</value>
    <value>change_vosaegroup</value>
    <value>see_invoicebase</value>
    <value>delete_invoicebase</value>
    <value>change_contact</value>
    <value>post_invoicebase</value>
    <value>add_vosaeuser</value>
    <value>add_contact</value>
    <value>delete_vosaegroup</value>
    <value>delete_vosaeuser</value>
    <value>change_appconf</value>
    <value>add_vosaefile</value>
    <value>see_vosaefile</value>
    <value>change_invoicingsettings</value>
    <value>see_vosaeuser</value>
    <value>see_contact</value>
    <value>add_item</value>
    <value>change_invoicebase</value>
    <value>change_item</value>
    <value>transmit_invoicebase</value>
  </permissions>
  <email>nobody2@vosae.com</email>
  <resource_uri>/api/v1/user/5231cbea4ab63c53dc9004a8/</resource_uri>
</object>

Request

POST /user/
Content-Type: text/yaml
email: !!python/unicode 'nobody3@vosae.com'
groups: [!!python/unicode '/api/v1/group/5231cbd54ab63c53dc900473/']
settings: {}
specific_permissions: {invoicing_access: false}

Response

201 Created
Content-Type: text/yaml; charset=utf-8
Location: /user/5231cbeb4ab63c53dc9004ac/
email: !!python/unicode 'nobody3@vosae.com'
full_name: !!python/unicode ''
groups: [!!python/unicode '/api/v1/group/5231cbd54ab63c53dc900473/']
id: !!python/unicode '5231cbeb4ab63c53dc9004ac'
permissions: [!!python/unicode 'change_vosaeuser', !!python/unicode 'see_vosaegroup',
!!python/unicode 'delete_item', !!python/unicode 'core_access', !!python/unicode 'see_item',
!!python/unicode 'add_invoicebase', !!python/unicode 'organizer_access', !!python/unicode 'add_vosaegroup',
!!python/unicode 'delete_vosaefile', !!python/unicode 'delete_contact', !!python/unicode 'contacts_access',
!!python/unicode 'change_vosaegroup', !!python/unicode 'see_invoicebase', !!python/unicode 'delete_invoicebase',
!!python/unicode 'change_contact', !!python/unicode 'post_invoicebase', !!python/unicode 'add_vosaeuser',
!!python/unicode 'add_contact', !!python/unicode 'delete_vosaegroup', !!python/unicode 'delete_vosaeuser',
!!python/unicode 'change_appconf', !!python/unicode 'add_vosaefile', !!python/unicode 'see_vosaefile',
!!python/unicode 'change_invoicingsettings', !!python/unicode 'see_vosaeuser', !!python/unicode 'see_contact',
!!python/unicode 'add_item', !!python/unicode 'change_invoicebase', !!python/unicode 'change_item',
!!python/unicode 'transmit_invoicebase']
photo_uri: null
resource_uri: !!python/unicode '/api/v1/user/5231cbeb4ab63c53dc9004ac/'
settings: {email_signature: null, gravatar_email: null, language_code: null}
specific_permissions: {invoicing_access: false}
status: !!python/unicode 'ACTIVE'