Sha256: f7150cb8c731a9749f4f5edcd734f68950060cc32d6e2ea9307cdffc9a100853

Contents?: true

Size: 1.45 KB

Versions: 53

Compression:

Stored size: 1.45 KB

Contents

## Sharing Agreements

### JSON Format
Sharing Agreements have the following format:

| Name            | Type                              | Comment
| --------------- | --------------------------------- | -------
| id              | integer                           | Automatically assigned upon creation
| name            | string                            | Name of this sharing agreement
| type            | string                            | Can be one of the following: inbound, outbound
| partner_name    | string                            | Can be one of the following: jira, null
| status          | string                            | Can be one of the following: accepted, declined, pending, inactive
| created_at      | date                              | The time the record was created

#### Example
```js
{
  "id":         88335,
  "url":        "https://company.zendesk.com/api/v2/agreements/88335.json",
  "name":       "Ticket Sharing",
  "type":       "inbound",
  "status":     "accepted",
  "created_at": "2012-02-20T22:55:29Z"
}
```

### List Sharing Agreements
`GET /api/v2/sharing_agreements.json`

#### Allowed For:

 * Agents

#### Using curl

```bash
curl https://{subdomain}.zendesk.com/api/v2/sharing_agreements.json \
  -v -u {email_address}:{password}
```

#### Example Response

```http
Status: 200 OK

{
  "sharing_agreements": [
    {
      "id":    1,
      "name":  "Foo @ Zendesk",
      "type":  "inbound",
      ...
     },
    ...
  ]
}
```

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
zendesk_api-1.2.10 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.9 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-0.3.14 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.8 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.5 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.7 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.4 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.2 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.1 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.0 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.0.rc3 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.6 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.0.rc2 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.3.0.rc1 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.5 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.4 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.3 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.2 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.2.1 lib/zendesk_api/server/docs/sharing_agreements.md
zendesk_api-1.1.3 lib/zendesk_api/server/docs/sharing_agreements.md