Create a Collaboration in Microsoft Teams

post

/crmRestApi/resources/11.13.18.05/collaborations

Request

Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Maximum Length: 1024
    The description of the collaboration displayed in the collaboration tool, for example, the description of the team shown in Microsoft Teams.
  • Maximum Length: 128
    The name of the collaboration displayed in the collaboration tool, for example, the team name shown in Microsoft Teams.
  • Maximum Length: 64
    The unique identifier of the record that the collaboration is associated to such as the opportunity ID.
  • Maximum Length: 128
    The rest resource name of the object type of the record that the collaboration is associated to such as opportunities.
  • Maximum Length: 80
    The name of the relationship between Resource team object and the object type that the collaboration is associated to. This is used when object type is a custom object.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : collaborations-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 64
    The unique identifier of the collaboration.
  • Read Only: true
    Maximum Length: 64
    The user who created the collaboration.
  • Read Only: true
    The date when the collaboration was created.
  • Maximum Length: 1024
    The description of the collaboration displayed in the collaboration tool, for example, the description of the team shown in Microsoft Teams.
  • Read Only: true
    The date when the collaboration was last updated.
  • Read Only: true
    Maximum Length: 64
    The user who last updated the collaboration.
  • Read Only: true
    Maximum Length: 32
    The login details of the user who last updated the collaboration.
  • Links
  • Maximum Length: 128
    The name of the collaboration displayed in the collaboration tool, for example, the team name shown in Microsoft Teams.
  • Maximum Length: 64
    The unique identifier of the record that the collaboration is associated to such as the opportunity ID.
  • Maximum Length: 128
    The rest resource name of the object type of the record that the collaboration is associated to such as opportunities.
  • Maximum Length: 80
    The name of the relationship between Resource team object and the object type that the collaboration is associated to. This is used when object type is a custom object.
  • Read Only: true
    Maximum Length: 512
    The external URL to the collaboration in the collaboration tool, for example, the URL to Team in Microsoft Teams.
Back to Top

Examples

The following example shows how to create a collaboration in microsoft team by submitting a POST request on the REST resource.

cURL Command

curl -u <username:password> \
 -X POST https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/collaborations/  \
 -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json'  | json_pp

Example of Request Body

The following example shows the contents of the request body in JSON format.

{
    "Name": "AccountTestingDes1",
    "Description" : "abcd232",
    "ObjectId": "300100567612000",
    "ObjectName": "accounts",
    "TeamRelationshipName":"SalesResourceMM"
}

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
    "CollabId": "300100568007996",
    "CreatedBy": "SALES_ADMIN",
    "CreationDate": "2022-12-14T10:01:02.080+00:00",
    "LastUpdateDate": "2022-12-14T10:01:02.080+00:00",
    "LastUpdateLogin": null,
    "LastUpdatedBy": "SALES_ADMIN",
    "Weburl": "https://teams.microsoft.com/l/team/19%3axn2II-yyBI7mv5OmAxEmJMa4irl1O-3rIVuC6Jd0IB81%40thread.tacv2/conversations?groupId=e19c3974-bddd-4d69-9120-6abde9da4495&tenantId=33b71f2d-7f52-4370-bd2c-08efb530b1c3",
    "ObjectId": "300100567612000",
    "ObjectName": "accounts",
    "Name": "Accounts - AccountTestingDes1",
    "Description": "This team is specifically for the AccountTestingDes1 account: abcd232",
    "TeamRelationshipName": "SalesResourceMM",
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/collaborations/300100568007996",
            "name": "collaborations",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/collaborations/300100568007996",
            "name": "collaborations",
            "kind": "item"
        }
    ]
}
Back to Top