Request

POST /group/
Content-Type: application/json
{
    "name": "My new group", 
    "permissions": [
        "core_access", 
        "contacts_access", 
        "invoicing_access", 
        "organizer_access", 
        "see_invoicebase", 
        "add_invoicebase", 
        "change_invoicebase", 
        "delete_invoicebase", 
        "see_item", 
        "add_item", 
        "change_item", 
        "delete_item", 
        "see_vosaefile", 
        "add_vosaefile", 
        "delete_vosaefile", 
        "see_contact", 
        "add_contact", 
        "change_contact", 
        "delete_contact"
    ]
}

Response

201 Created
Content-Type: application/json
Location: /group/5231cbe74ab63c53dc9004a0/
{
    "name": "My new group", 
    "created_at": "2013-09-12T14:12:54.996713+00:00", 
    "created_by": "/api/v1/user/5231cbd64ab63c53dc900474/", 
    "permissions": [
        "delete_item", 
        "core_access", 
        "see_item", 
        "add_invoicebase", 
        "organizer_access", 
        "delete_vosaefile", 
        "delete_contact", 
        "contacts_access", 
        "invoicing_access", 
        "see_invoicebase", 
        "delete_invoicebase", 
        "change_contact", 
        "add_contact", 
        "add_vosaefile", 
        "see_vosaefile", 
        "see_contact", 
        "add_item", 
        "change_invoicebase", 
        "change_item"
    ], 
    "id": "5231cbe74ab63c53dc9004a0", 
    "resource_uri": "/api/v1/group/5231cbe74ab63c53dc9004a0/"
}

Request

POST /group/
Content-Type: application/xml
<object>
  <name>My new group 2</name>
  <permissions type="list">
    <value>core_access</value>
    <value>contacts_access</value>
    <value>invoicing_access</value>
    <value>organizer_access</value>
    <value>see_invoicebase</value>
    <value>add_invoicebase</value>
    <value>change_invoicebase</value>
    <value>delete_invoicebase</value>
    <value>see_item</value>
    <value>add_item</value>
    <value>change_item</value>
    <value>delete_item</value>
    <value>see_vosaefile</value>
    <value>add_vosaefile</value>
    <value>delete_vosaefile</value>
    <value>see_contact</value>
    <value>add_contact</value>
    <value>change_contact</value>
    <value>delete_contact</value>
  </permissions>
</object>

Response

201 Created
Content-Type: application/xml; charset=utf-8
Location: /group/5231cbe74ab63c53dc9004a1/
<object>
  <name>My new group 2</name>
  <created_at>2013-09-12T14:12:55.032430+00:00</created_at>
  <created_by>/api/v1/user/5231cbd64ab63c53dc900474/</created_by>
  <permissions type="list">
    <value>delete_item</value>
    <value>core_access</value>
    <value>see_item</value>
    <value>add_invoicebase</value>
    <value>organizer_access</value>
    <value>delete_vosaefile</value>
    <value>delete_contact</value>
    <value>contacts_access</value>
    <value>invoicing_access</value>
    <value>see_invoicebase</value>
    <value>delete_invoicebase</value>
    <value>change_contact</value>
    <value>add_contact</value>
    <value>add_vosaefile</value>
    <value>see_vosaefile</value>
    <value>see_contact</value>
    <value>add_item</value>
    <value>change_invoicebase</value>
    <value>change_item</value>
  </permissions>
  <id>5231cbe74ab63c53dc9004a1</id>
  <resource_uri>/api/v1/group/5231cbe74ab63c53dc9004a1/</resource_uri>
</object>

Request

POST /group/
Content-Type: text/yaml
!!python/unicode 'name': !!python/unicode 'My new group 3'
!!python/unicode 'permissions': [!!python/unicode 'core_access', !!python/unicode 'contacts_access',
!!python/unicode 'invoicing_access', !!python/unicode 'organizer_access', !!python/unicode 'see_invoicebase',
!!python/unicode 'add_invoicebase', !!python/unicode 'change_invoicebase', !!python/unicode 'delete_invoicebase',
!!python/unicode 'see_item', !!python/unicode 'add_item', !!python/unicode 'change_item',
!!python/unicode 'delete_item', !!python/unicode 'see_vosaefile', !!python/unicode 'add_vosaefile',
!!python/unicode 'delete_vosaefile', !!python/unicode 'see_contact', !!python/unicode 'add_contact',
!!python/unicode 'change_contact', !!python/unicode 'delete_contact']

Response

201 Created
Content-Type: text/yaml; charset=utf-8
Location: /group/5231cbe74ab63c53dc9004a2/
created_at: '2013-09-12T14:12:55.070968+00:00'
created_by: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
id: !!python/unicode '5231cbe74ab63c53dc9004a2'
name: !!python/unicode 'My new group 3'
permissions: [!!python/unicode 'delete_item', !!python/unicode 'core_access', !!python/unicode 'see_item',
!!python/unicode 'add_invoicebase', !!python/unicode 'organizer_access', !!python/unicode 'delete_vosaefile',
!!python/unicode 'delete_contact', !!python/unicode 'contacts_access', !!python/unicode 'invoicing_access',
!!python/unicode 'see_invoicebase', !!python/unicode 'delete_invoicebase', !!python/unicode 'change_contact',
!!python/unicode 'add_contact', !!python/unicode 'add_vosaefile', !!python/unicode 'see_vosaefile',
!!python/unicode 'see_contact', !!python/unicode 'add_item', !!python/unicode 'change_invoicebase',
!!python/unicode 'change_item']
resource_uri: !!python/unicode '/api/v1/group/5231cbe74ab63c53dc9004a2/'