spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb in fastlane-2.211.0 vs spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb in fastlane-2.212.0
- old
+ new
@@ -188,9 +188,28 @@
}
provisioning_request_client.post("devices", body)
end
+ def patch_device(id: nil, status: nil, new_name: nil)
+ raise "Device id is nil" if id.nil?
+
+ attributes = {
+ name: new_name,
+ status: status
+ }
+
+ body = {
+ data: {
+ attributes: attributes,
+ id: id,
+ type: "devices"
+ }
+ }
+
+ provisioning_request_client.patch("devices/#{id}", body)
+ end
+
#
# profiles
#
def get_profiles(filter: {}, includes: nil, limit: nil, sort: nil)