/// <summary> /// Update <see cref="Organization"/>'s. /// </summary> /// <remarks> /// This method requires authentication. /// See the <a href="http://sdldevelopmentpartners.sdlproducts.com/documentation/api">API documentation</a> for more information. /// </remarks> /// <exception cref="AuthorizationException"> /// Thrown when the current user does not have permission to make the request. /// </exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>A list of <see cref="Organization"/>s.</returns> public Task<string> Update(Organization organization) { return ApiConnection.Put<string>(ApiUrls.Organizations(), organization); }
/// <summary> /// Create <see cref="Organization"/>'s. /// </summary> /// <remarks> /// This method requires authentication. /// See the <a href="http://sdldevelopmentpartners.sdlproducts.com/documentation/api">API documentation</a> for more information. /// </remarks> /// <exception cref="AuthorizationException"> /// Thrown when the current user does not have permission to make the request. /// </exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>A list of <see cref="Organization"/>s.</returns> public async Task<string> Create(Organization organization) { return await ApiConnection.Post<string>(ApiUrls.Organizations(), organization,"application/json"); }