> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://es.megaport.ferndocs.com/es/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://es.megaport.ferndocs.com/es/_mcp/server.

# Bloqueo de Producto

POST https://api.megaport.com/v2/product/{productUid}/lock

Bloquea el producto para evitar cambios.

El `productUid` es una cadena obligatoria que identifica el servicio para bloquear mediante un identificador de producto único.

**Nota:** Debe ser un Administrador de Empresa para ejecutar esta solicitud con éxito.

Para obtener más información, consulte [Bloqueo de Servicios de Megaport](https://docs.megaport.com/portal-admin/locking/).

Reference: https://es.megaport.ferndocs.com/es/api-reference/product-details/lock-product

## Servers

- `https://api.megaport.com` (Entorno de producción, default)
- `https://api-staging.megaport.com` (Entorno de pruebas (solo pruebas, se restablece cada 24 horas))

## Request

### Path parameters

- `productUid` (string, required)

## Response

### 200

Bloquear Producto / Bloquear Producto

- `data` (V2ProductProductUidLockPostResponsesContentApplicationJsonSchemaData, optional)
- `message` (string, optional)
- `terms` (string, optional)

## Types

### V2ProductProductUidLockPostResponsesContentApplicationJsonSchemaData

- `aLocation` (any, optional, nullable)
- `aLocationId` (any, optional, nullable)
- `accountManager` (any, optional, nullable)
- `adminContactId` (any, optional, nullable)
- `adminContactName` (any, optional, nullable)
- `adminLocked` (boolean, optional)
- `aggregationId` (any, optional, nullable)
- `attributeTags` (V2ProductProductUidLockPostResponsesContentApplicationJsonSchemaDataAttributeTags, optional)
- `attributes` (list of any, optional)
- `bLocation` (any, optional, nullable)
- `bLocationId` (any, optional, nullable)
- `bgpShutdownDefault` (boolean, optional)
- `billableId` (double, optional)
- `billableUsageAlgorithm` (any, optional, nullable)
- `billingContactId` (any, optional, nullable)
- `billingContactName` (any, optional, nullable)
- `buyoutPort` (boolean, optional)
- `companyId` (double, optional)
- `companyName` (string, optional)
- `components` (list of any, optional)
- `configuredDate` (double, optional)
- `contractStartDate` (any, optional, nullable)
- `contractTermMonths` (double, optional)
- `createDate` (double, optional)
- `createdBy` (string, optional)
- `currentEstimatedDelivery` (any, optional, nullable)
- `errorMessage` (any, optional, nullable)
- `inAdvanceBillingStatus` (any, optional, nullable)
- `intercapPath` (any, optional, nullable)
- `lagPrimary` (boolean, optional)
- `locked` (boolean, optional)
- `market` (string, optional)
- `marketplaceVisibility` (boolean, optional)
- `maximumSpeed` (any, optional, nullable)
- `minimumSpeed` (any, optional, nullable)
- `name` (string, optional)
- `nonPayerCompanyId` (any, optional, nullable)
- `payerCompanyId` (any, optional, nullable)
- `productType` (string, optional)
- `promptUid` (any, optional, nullable)
- `provisioningItems` (list of any, optional)
- `provisioningStatus` (string, optional)
- `rateLimit` (double, optional)
- `rateType` (string, optional)
- `requestedDate` (double, optional)
- `salesId` (any, optional, nullable)
- `salesName` (any, optional, nullable)
- `secondaryName` (any, optional, nullable)
- `serviceName` (string, optional)
- `tags` (list of any, optional)
- `technicalContactId` (any, optional, nullable)
- `technicalContactName` (any, optional, nullable)
- `technicalServiceId` (double, optional)
- `technicalServiceUid` (string, optional)
- `terminationDate` (any, optional, nullable)
- `trialAgreement` (boolean, optional)
- `virtual` (boolean, optional)
- `vxcAutoApproval` (boolean, optional)
- `vxcDistanceBand` (any, optional, nullable)
- `vxcPermitted` (boolean, optional)

### V2ProductProductUidLockPostResponsesContentApplicationJsonSchemaDataAttributeTags

## Examples

**Response**

```json
{
  "data": {
    "aLocation": null,
    "aLocationId": null,
    "accountManager": null,
    "adminContactId": null,
    "adminContactName": null,
    "adminLocked": false,
    "aggregationId": null,
    "attributeTags": {},
    "attributes": [],
    "bLocation": null,
    "bLocationId": null,
    "bgpShutdownDefault": false,
    "billableId": 60336,
    "billableUsageAlgorithm": null,
    "billingContactId": null,
    "billingContactName": null,
    "buyoutPort": false,
    "companyId": 1153,
    "companyName": "Megaport Lab",
    "components": [],
    "configuredDate": 1594238785559,
    "contractStartDate": null,
    "contractTermMonths": 1,
    "createDate": 1594238704732,
    "createdBy": "9b0fec19-17b6-4370-8f1b-c71d8848ef7f",
    "currentEstimatedDelivery": null,
    "errorMessage": null,
    "inAdvanceBillingStatus": null,
    "intercapPath": null,
    "lagPrimary": false,
    "locked": true,
    "market": "USA",
    "marketplaceVisibility": false,
    "maximumSpeed": null,
    "minimumSpeed": null,
    "name": "Neteng SD-WAN ASH PoC Guest Eth1-1-1",
    "nonPayerCompanyId": null,
    "payerCompanyId": null,
    "productType": "MEGAPORT",
    "promptUid": null,
    "provisioningItems": [],
    "provisioningStatus": "LIVE",
    "rateLimit": 10000,
    "rateType": "MONTHLY",
    "requestedDate": 1594238704732,
    "salesId": null,
    "salesName": null,
    "secondaryName": null,
    "serviceName": "Neteng SD-WAN ASH PoC Guest Eth1-1-1",
    "tags": [],
    "technicalContactId": null,
    "technicalContactName": null,
    "technicalServiceId": 61140,
    "technicalServiceUid": "c1c45c3c-8fa0-4d14-bcea-7bd0c85331c7",
    "terminationDate": null,
    "trialAgreement": false,
    "virtual": false,
    "vxcAutoApproval": false,
    "vxcDistanceBand": null,
    "vxcPermitted": true
  },
  "message": "Servicio bloqueado",
  "terms": "This data is subject to the Acceptable Use Policy https://www.megaport.com/legal/acceptable-use-policy"
}
```

**SDK Code**

```python
import requests

url = "https://api.megaport.com/v2/product/productUid/lock"

response = requests.post(url)

print(response.json())
```

```javascript
const url = 'https://api.megaport.com/v2/product/productUid/lock';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.megaport.com/v2/product/productUid/lock"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.megaport.com/v2/product/productUid/lock")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.megaport.com/v2/product/productUid/lock")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.megaport.com/v2/product/productUid/lock');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.megaport.com/v2/product/productUid/lock");
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.megaport.com/v2/product/productUid/lock")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```