Editing Groups

HTTP Request Line

PUT /ffws/v1/contact_groups/USERNAME/id HTTP/1.1

HTTP Response Status Codes

200 OK

Modified successfully.

403 Forbidden

Authenticated user does not have permission to change data associated with username.

404 Not Found

No user found with that username.

400 Bad Request

The provided XML is not valid.

Example

PUT /ffws/v1/contact_groups/admin/6 HTTP/1.1
content-type: application/xml
authorization: Basic YWRtaW46YWRtaW4=
<?xml version=”1.0” encoding=”UTF-8”?>
<contact_group>
	<contact_group_url>https://172.16.128.5/ffws/v1/contact_groups/admin/4</contact_group_url>
	<name>Change name</name>
	<description>change description</description>
	<contact>https://172.16.128.5/ffws/v1/contacts/admin/1</contact>
	<contact>https://172.16.128.5/ffws/v1/contacts/admin/2</contact>
	<contact>https://172.16.128.5/ffws/v1/contacts/global_contact_list/3</contact>
</contact_group>
-----------------------------------
HTTP/1.1 200 OK
content-type: application/xml
<?xml version=”1.0” encoding=”UTF-8”?>
<response>
	<message>Modified</message>
</response>