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>&quotaUser=<string>&userIp=<string>

Adds a new user to the given web property.

Request Params

KeyDatatypeRequiredDescription
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI 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_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. 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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;entity&quot;:{&quot;accountRef&quot;:{&quot;href&quot;:&quot;culpa enim veniam&quot;,&quot;id&quot;:&quot;Lorem tempor exercitation fugiat&quot;,&quot;kind&quot;:&quot;analytics#accountRef&quot;,&quot;name&quot;:&quot;reprehenderit nulla aute aliq&quot;},&quot;profileRef&quot;:{&quot;accountId&quot;:&quot;Ut amet&quot;,&quot;href&quot;:&quot;proident voluptate amet&quot;,&quot;id&quot;:&quot;quis et deserunt&quot;,&quot;internalWebPropertyId&quot;:&quot;enim velit eiusmod&quot;,&quot;kind&quot;:&quot;analytics#profileRef&quot;,&quot;name&quot;:&quot;esse in aute ullamco&quot;,&quot;webPropertyId&quot;:&quot;Excepteur&quot;},&quot;webPropertyRef&quot;:{&quot;accountId&quot;:&quot;voluptate dolore nostrud&quot;,&quot;href&quot;:&quot;cillum ullamco in aliquip&quot;,&quot;id&quot;:&quot;consectetur sunt l&quot;,&quot;internalWebPropertyId&quot;:&quot;pariatur in&quot;,&quot;kind&quot;:&quot;analytics#webPropertyRef&quot;,&quot;name&quot;:&quot;laborum quis nulla&quot;}},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;kind&quot;:&quot;analytics#entityUserLink&quot;,&quot;permissions&quot;:{&quot;effective&quot;:[&quot;consectetur magna pariatur incididunt&quot;,&quot;Lorem reprehenderit&quot;],&quot;local&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;selfLink&quot;:&quot;\u003cstring\u003e&quot;,&quot;userRef&quot;:{&quot;email&quot;:&quot;eu elit reprehenderit Excepteur sed&quot;,&quot;id&quot;:&quot;dolor quis&quot;,&quot;kind&quot;:&quot;analytics#userRef&quot;}}