analytics.management.webproperty User Links.insert
POST {{baseUrl}}/management/accounts/:accountId/webproperties/:webPropertyId/entityUserLinks?alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&userIp=<string>
Adds a new user to the given web property.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
Request Body
{"entity"=>{"accountRef"=>{"href"=>"sit tempor ut ea", "id"=>"ut ea", "kind"=>"analytics#accountRef", "name"=>"veniam"}, "profileRef"=>{"accountId"=>"culpa", "href"=>"ipsum nostrud minim occaecat", "id"=>"laboris aute id est", "internalWebPropertyId"=>"enim in non tempor quis", "kind"=>"analytics#profileRef", "name"=>"Duis veniam", "webPropertyId"=>"Lorem in"}, "webPropertyRef"=>{"accountId"=>"amet", "href"=>"sed proident amet tempor Excepteur", "id"=>"qui irure dolor", "internalWebPropertyId"=>"sunt tempor exercitation elit enim", "kind"=>"analytics#webPropertyRef", "name"=>"esse"}}, "id"=>"<string>", "kind"=>"analytics#entityUserLink", "permissions"=>{"local"=>["<string>", "<string>"]}, "selfLink"=>"<string>", "userRef"=>{"email"=>"dolore", "id"=>"sed ex cillum id quis", "kind"=>"analytics#userRef"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"entity":{"accountRef":{"href":"culpa enim veniam","id":"Lorem tempor exercitation fugiat","kind":"analytics#accountRef","name":"reprehenderit nulla aute aliq"},"profileRef":{"accountId":"Ut amet","href":"proident voluptate amet","id":"quis et deserunt","internalWebPropertyId":"enim velit eiusmod","kind":"analytics#profileRef","name":"esse in aute ullamco","webPropertyId":"Excepteur"},"webPropertyRef":{"accountId":"voluptate dolore nostrud","href":"cillum ullamco in aliquip","id":"consectetur sunt l","internalWebPropertyId":"pariatur in","kind":"analytics#webPropertyRef","name":"laborum quis nulla"}},"id":"\u003cstring\u003e","kind":"analytics#entityUserLink","permissions":{"effective":["consectetur magna pariatur incididunt","Lorem reprehenderit"],"local":["\u003cstring\u003e","\u003cstring\u003e"]},"selfLink":"\u003cstring\u003e","userRef":{"email":"eu elit reprehenderit Excepteur sed","id":"dolor quis","kind":"analytics#userRef"}}