retrofit2.http.PUT Java Examples

The following examples show how to use retrofit2.http.PUT. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: contentful-management.java   Author: contentful   File: ServiceAssets.java    License: Apache License 2.0 5 votes vote down vote up
@PUT("spaces/{space}/environments/{environment}/assets/{asset}")
Flowable<CMAAsset> update(
    @Header("X-Contentful-Version") Integer version,
    @Path("space") String spaceId,
    @Path("environment") String environment,
    @Path("asset") String assetId,
    @Body CMAAsset asset);
 
Example #2
Source Project: contentful-management.java   Author: contentful   File: ServiceRoles.java    License: Apache License 2.0 5 votes vote down vote up
@PUT("/spaces/{spaceId}/roles/{roleId}")
Flowable<CMARole> update(
    @Path("spaceId") String spaceId,
    @Path("roleId") String roleId,
    @Body CMARole role,
    @Header("X-Contentful-Version") Integer version
);
 
Example #3
Source Project: Mysplash   Author: WangDaYeeeeee   File: UserApi.java    License: GNU Lesser General Public License v3.0 5 votes vote down vote up
@PUT("me")
Observable<Me> updateMeProfile(@Query("username") String username,
                               @Query("first_name") String first_name,
                               @Query("last_name") String last_name,
                               @Query("email") String email,
                               @Query("url") String url,
                               @Query("location") String location,
                               @Query("bio") String bio);
 
Example #4
Source Project: contentful-management.java   Author: contentful   File: ServiceEntries.java    License: Apache License 2.0 5 votes vote down vote up
@PUT("/spaces/{space}/environments/{environment}/entries/{entry}")
Flowable<CMAEntry> update(
    @Header("X-Contentful-Version") Integer version,
    @Path("space") String spaceId,
    @Path("environment") String environmentId,
    @Path("entry") String entryId,
    @Body CMAEntry entry);
 
Example #5
Source Project: appcenter-plugin   Author: jenkinsci   File: UploadService.java    License: MIT License 4 votes vote down vote up
@Headers("x-ms-blob-type: BlockBlob")
@PUT
CompletableFuture<Void> uploadSymbols(@Url @Nonnull String url, @Body @Nonnull RequestBody file);
 
Example #6
Source Project: azure-libraries-for-java   Author: Azure   File: ActivityLogAlertsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.monitor.ActivityLogAlerts createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("activityLogAlertName") String activityLogAlertName, @Query("api-version") String apiVersion, @Body ActivityLogAlertResourceInner activityLogAlert, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #7
Source Project: azure-libraries-for-java   Author: Azure   File: DiskEncryptionSetsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.DiskEncryptionSets beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("diskEncryptionSetName") String diskEncryptionSetName, @Query("api-version") String apiVersion, @Body DiskEncryptionSetInner diskEncryptionSet, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #8
Source Project: GithubApp   Author: mingjunli   File: RepoService.java    License: Apache License 2.0 4 votes vote down vote up
@Headers("Content-Length: 0")
@PUT("/user/starred/{owner}/{repo}")
Observable<Response<ResponseBody>> starRepo(@Path("owner") String owner, @Path("repo") String repo);
 
Example #9
Source Project: azure-libraries-for-java   Author: Azure   File: CassandraResourcesInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.CassandraResources updateCassandraTableThroughput" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default")
Observable<Response<ResponseBody>> updateCassandraTableThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Body ThroughputSettingsUpdateParameters updateThroughputParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #10
Source Project: azure-libraries-for-java   Author: Azure   File: SensitivityLabelsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.SensitivityLabels createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Path("columnName") String columnName, @Path("sensitivityLabelSource") String sensitivityLabelSource, @Path("subscriptionId") String subscriptionId, @Body SensitivityLabelInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #11
Source Project: azure-libraries-for-java   Author: Azure   File: EventHubsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.eventhub.EventHubs createOrUpdateAuthorizationRule" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}")
Observable<Response<ResponseBody>> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("eventHubName") String eventHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body AuthorizationRuleInner parameters, @Header("User-Agent") String userAgent);
 
Example #12
Source Project: azure-libraries-for-java   Author: Azure   File: CustomDomainsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cdn.CustomDomains create" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}")
Observable<Response<ResponseBody>> create(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("customDomainName") String customDomainName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CustomDomainParameters customDomainProperties, @Header("User-Agent") String userAgent);
 
Example #13
Source Project: azure-libraries-for-java   Author: Azure   File: AppServiceCertificateOrdersInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.AppServiceCertificateOrders createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("certificateOrderName") String certificateOrderName, @Path("subscriptionId") String subscriptionId, @Body AppServiceCertificateOrderInner certificateDistinguishedName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #14
Source Project: rancher-java-sdk   Author: objectpartners   File: StatsAccessService.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("statsAccess/{id}")
Call<StatsAccess> update(@Path("id") String id, @Body StatsAccess statsAccess);
 
Example #15
Source Project: azure-libraries-for-java   Author: Azure   File: ExpressRouteGatewaysInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteGateways beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}")
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("expressRouteGatewayName") String expressRouteGatewayName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteGatewayInner putExpressRouteGatewayParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #16
Source Project: azure-libraries-for-java   Author: Azure   File: ServerKeysInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.ServerKeys createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("keyName") String keyName, @Path("subscriptionId") String subscriptionId, @Body ServerKeyInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #17
Source Project: azure-libraries-for-java   Author: Azure   File: DedicatedHostsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.DedicatedHosts beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}")
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("hostGroupName") String hostGroupName, @Path("hostName") String hostName, @Path("subscriptionId") String subscriptionId, @Body DedicatedHostInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #18
Source Project: azure-libraries-for-java   Author: Azure   File: ExperimentsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Experiments create" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}")
Observable<Response<ResponseBody>> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #19
Source Project: rancher-java-sdk   Author: objectpartners   File: RevertToSnapshotInputService.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("revertToSnapshotInput/{id}")
Call<RevertToSnapshotInput> update(@Path("id") String id, @Body RevertToSnapshotInput revertToSnapshotInput);
 
Example #20
Source Project: azure-libraries-for-java   Author: Azure   File: AzureFirewallsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.AzureFirewalls beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}")
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Body AzureFirewallInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #21
Source Project: OpenHub   Author: ThirtyDegreesRay   File: NotificationsService.java    License: GNU General Public License v3.0 4 votes vote down vote up
@NonNull @PUT("notifications")
Observable<Response<ResponseBody>> markAllNotificationsAsRead(
        @Body MarkNotificationReadRequestModel notificationRequestModel
);
 
Example #22
Source Project: rancher-java-sdk   Author: objectpartners   File: ScalePolicyService.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("scalePolicy/{id}")
Call<ScalePolicy> update(@Path("id") String id, @Body ScalePolicy scalePolicy);
 
Example #23
Source Project: azure-libraries-for-java   Author: Azure   File: ContainerServicesInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerservice.ContainerServices beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}")
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("containerServiceName") String containerServiceName, @Path("subscriptionId") String subscriptionId, @Body ContainerServiceInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #24
Source Project: rancher-java-sdk   Author: objectpartners   File: AccountService.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("account/{id}")
Call<Account> update(@Path("id") String id, @Body Account account);
 
Example #25
Source Project: RetrofitClient   Author: Jadyli   File: CommonRequest.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@PUT("{path}")
Observable<ResponseBody> doPut(@Path(value = "path", encoded = true) String url, @FieldMap Map<String, Object> map);
 
Example #26
Source Project: 1Rramp-Android   Author: hapramp   File: HaprampAPI.java    License: MIT License 4 votes vote down vote up
@PUT("competitions/{competition_id}/winners")
Call<CompetitionEntryResponse> updateServerWithRanks(@Path("competition_id") String comp_id, @Body WinnersRankBody winnersRankBody);
 
Example #27
Source Project: xDrip-plus   Author: jamorham   File: TidepoolUploader.java    License: GNU General Public License v3.0 4 votes vote down vote up
@PUT("/v1/datasets/{sessionId}")
Call<MDatasetReply> closeDataSet(@Header(SESSION_TOKEN_HEADER) String token, @Path("sessionId") String id, @Body RequestBody body);
 
Example #28
Source Project: android-retrofit-firebase-mvp-example   Author: hanscappelle   File: RemoteServiceImpl.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("/task/{title}.json")
Call<Task> createTask(
        // title configured as identifier for tasks
        @Path("title") String title,
        @Body Task task);
 
Example #29
Source Project: rancher-java-sdk   Author: objectpartners   File: AddRemoveServiceLinkInputService.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("addRemoveServiceLinkInput/{id}")
Call<AddRemoveServiceLinkInput> update(@Path("id") String id, @Body AddRemoveServiceLinkInput addRemoveServiceLinkInput);
 
Example #30
Source Project: rancher-java-sdk   Author: objectpartners   File: EnvironmentUpgradeService.java    License: Apache License 2.0 4 votes vote down vote up
@PUT("environmentUpgrade/{id}")
Call<EnvironmentUpgrade> update(@Path("id") String id, @Body EnvironmentUpgrade environmentUpgrade);